/* ==========================================================
   1g.pl — shared design system v2 (compact bazaraki-style)
   Responsive: 320px → 1440px+
   ========================================================== */
:root{
  --green: #FF6A00;
  --green-600: #E55A00;
  --green-700: #C24A00;
  --green-50: #FFF4EC;
  --red: #E63946;
  --red-600: #cc2f3c;
  --yellow: #ffd24c;
  --ink: #1a2530;
  --fg: #222b35;
  --muted: #5a6470;
  --line: #e6e9ec;
  --line-2: #d4d8db;
  --bg: #ffffff;
  --soft: #f5f6f7;
  --soft-2: #ecedef;
  --info-bg: #e8f0fd;
  --info-line: #d4e0f2;

  --bs-primary: #2EA84F;
  --bs-body-font-family: 'Manrope', system-ui, sans-serif;
  --bs-body-bg: #fff;
  --bs-body-color: #222b35;
  --bs-border-radius: 8px;
  --bs-border-radius-sm: 6px;
  --bs-border-radius-lg: 10px;
}

*{ -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
html,body{ background:#fff; color: var(--fg); font-family:'Manrope', system-ui, sans-serif; font-size:14px; }
body{ overflow-x:hidden; min-height: 100vh; }
a{ text-decoration:none; color: var(--green-700); }
a:hover{ color: var(--green-600); }
img{ max-width:100%; height:auto; display:block; }
button{ font-family: inherit; }
.vh{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* narrow centered container */
.wrap{ max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (max-width: 480px){ .wrap{ padding: 0 12px; } }
@media (max-width: 359px){ .wrap{ padding: 0 10px; } }

/* ===== PL BADGE ===== */
.pl-badge{
  display:inline-flex; align-items:center; gap: 6px;
  font-size: 11px; font-weight:700; color: var(--ink);
  background:#fff; border:1px solid var(--line); padding: 3px 8px 3px 5px; border-radius: 999px;
  white-space: nowrap;
}
.pl-badge .flag{
  width:18px; height:12px; border-radius:2px; flex:0 0 18px;
  background: linear-gradient(to bottom, #fff 0 50%, #dc143c 50% 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

/* ===== HEADER ===== */
.topbar{ background:#fff; border-bottom:1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.topbar-inner{ display:flex; align-items:center; gap: 16px; height: 64px; }
.logo{
  display:inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-decoration:none; line-height: 1; flex: 0 0 auto;
}
.logo-mark{
  font-family:'Manrope', system-ui, sans-serif; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1; display: inline-flex; align-items: baseline;
}
.logo-mark .b{ font-size: 30px; color: var(--green); }
.logo-mark .d{ font-size: 30px; color: var(--red); padding: 0 1px; }
.logo-mark .t{ font-size: 22px; color: var(--ink); }
.logo-tag{
  font-size: 9px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-top: 4px;
}

.top-links{ margin-left:auto; display:flex; align-items:center; gap: 18px; font-size: 13px; }
.top-links a{ color: var(--ink); }
.top-links a:hover{ color: var(--green-700); }
.top-links .acc{ color: var(--muted); }
.icon-link{ position:relative; color: var(--ink); display:inline-flex; align-items:center; gap:4px; font-size: 18px; }
.icon-link .dot-c{
  position:absolute; top:-4px; right:-6px; min-width:16px; height:16px; padding:0 4px;
  background: var(--red); color:#fff; border-radius:999px; font-size: 10px; font-weight:700;
  display:grid; place-items:center; border:2px solid #fff;
}
.btn-post-ad{
  background: var(--red); color:#fff; padding: 8px 14px; border-radius:6px;
  font-weight:700; font-size:13px; border:0; white-space:nowrap;
  display:inline-flex; align-items:center; gap: 5px;
  transition: background .15s, transform .1s;
}
.btn-post-ad:hover{ background: var(--red-600); color:#fff; }
.btn-post-ad:active{ transform: scale(.97); }

.lang{ display:inline-flex; gap: 2px; align-items:center; font-size: 11px; position: relative; }
.lang span{ display:inline-flex; align-items:center; gap:5px; padding: 5px 8px; cursor:pointer; color: var(--muted); border-radius: 4px; user-select: none; }
.lang span.active{ font-weight:800; color: var(--ink); background: var(--soft); padding-right: 18px; position: relative; }
.lang span.active::after{ content: ""; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 3.5px solid transparent; border-top-color: var(--muted); margin-top: 1px; transition: transform .15s; }
.lang.open span.active::after{ transform: translateY(-50%) rotate(180deg); margin-top: -2px; }
.lang span:hover{ background: var(--soft); color: var(--ink); }
.lang .lang-dd{
  display: none; position: absolute; top: calc(100% + 4px); right: 0; z-index: 100;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; min-width: 120px;
  box-shadow: 0 8px 20px -4px rgba(0,0,0,.15); overflow: hidden; padding: 4px;
  flex-direction: column; gap: 1px;
}
.lang.open .lang-dd{ display: flex; }
.lang .lang-dd span{ padding: 7px 10px; border-radius: 4px; font-weight: 600; font-size: 12px; }
.lang .lang-dd span:hover{ background: var(--green-50); color: var(--green-700); }
.lang .flag{ width:16px; height:11px; display:inline-block; border-radius:2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); flex:0 0 16px; }

/* Footer/flat lang — simple inline row, no tiles */
.footer .lang, .lang.lang-flat{
  display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.footer .lang span, .lang.lang-flat span{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; cursor: pointer;
  background: transparent !important; border: 0 !important;
  color: rgba(255,255,255,.6); font-weight: 600; font-size: 12px;
  transition: color .12s;
}
.footer .lang span:hover, .lang.lang-flat span:hover{
  color: #fff; background: transparent !important;
}
.footer .lang span.active, .lang.lang-flat span.active{
  color: #fff; font-weight: 800;
}
.footer .lang span.active::after, .lang.lang-flat span.active::after{ display: none; }
.footer .lang .lang-dd, .lang.lang-flat .lang-dd{ display: none !important; }
.footer .lang .flag, .lang.lang-flat .flag{
  width: 18px; height: 12px; border-radius: 2px; flex: 0 0 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}
.lang .flag.pl{ background: linear-gradient(to bottom, #fff 50%, #dc143c 50%); }
.lang .flag.en{ background: #1e3a8a; position:relative; overflow:hidden; }
.lang .flag.en::before{ content:""; position:absolute; inset:0; background: linear-gradient(45deg, transparent 47%, #fff 47% 53%, transparent 53%), linear-gradient(-45deg, transparent 47%, #fff 47% 53%, transparent 53%); }
.lang .flag.ua{ background: linear-gradient(to bottom, #005bbb 50%, #ffd500 50%); }
.lang .flag.de{ background: linear-gradient(to bottom, #000 0 33%, #dd0000 33% 66%, #ffce00 66%); }

.hamburger{
  width: 40px; height: 40px; border-radius: 8px; background: var(--ink); color:#fff; border:0;
  display:inline-flex; align-items:center; justify-content:center; font-size: 22px;
  flex:0 0 40px; cursor:pointer; transition: background .15s;
}
.hamburger:hover{ background:#000; color:#fff; }
.hamburger:active{ transform: scale(.96); }

/* ===== SEARCH BAR ===== */
.search-bar{ background: var(--green); padding: 10px 0; }
.search-bar form{
  display:flex; gap: 6px; align-items:stretch;
  background:#fff; border-radius:8px; padding: 5px;
}
.search-bar .q{ flex:1; display:flex; align-items:center; gap: 8px; padding: 0 10px; min-width:0; }
.search-bar .q i{ color: var(--muted); font-size:18px; flex:0 0 auto; }
.search-bar .q input{
  flex:1; border:0; outline:0; background:transparent; padding: 9px 12px 9px 0;
  font: 600 14px 'Manrope', sans-serif; color: var(--fg); min-width:0;
}
.search-bar .q input::placeholder{ color: var(--muted); font-weight: 500; }
.search-bar .sep{ width:1px; background: var(--line); margin: 4px 0; flex:0 0 1px; }

/* === SEARCH AUTOCOMPLETE DROPDOWN === */
.search-bar form{ position: relative; }
.search-bar .search-suggest{
  display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,.18), 0 4px 12px -4px rgba(0,0,0,.08);
  padding: 10px 0; z-index: 80; max-height: 70vh; overflow-y: auto;
}
.search-bar .search-suggest.open{ display: block; animation: ssPopUni .15s ease-out; }
@keyframes ssPopUni{ from{ opacity: 0; transform: translateY(-4px); } to{ opacity: 1; transform: none; } }
.search-bar .search-suggest .ss-group{ padding: 4px 0; }
.search-bar .search-suggest .ss-group + .ss-group{ border-top: 1px solid var(--line); }
.search-bar .search-suggest .ss-label{
  display: block; padding: 8px 18px 4px;
  font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.search-bar .search-suggest .ss-item{
  display: flex; align-items: center; gap: 12px; padding: 8px 18px;
  cursor: pointer; transition: background .12s; text-decoration: none; color: var(--fg);
}
.search-bar .search-suggest .ss-item:hover,
.search-bar .search-suggest .ss-item.focused{ background: var(--soft); color: var(--ink); }
.search-bar .search-suggest .ss-item .si{
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px;
  background: var(--soft); color: var(--muted);
  display: grid; place-items: center; font-size: 14px;
}
.search-bar .search-suggest .ss-item.trending .si{ background: oklch(0.96 0.07 80); color: oklch(0.55 0.18 70); }
.search-bar .search-suggest .ss-item.recent .si{ background: var(--soft); color: var(--muted); }
.search-bar .search-suggest .ss-item .st{ flex: 1; min-width: 0; }
.search-bar .search-suggest .ss-item .st .title{ font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.2; }
.search-bar .search-suggest .ss-item .st .sub{ font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.search-bar .search-suggest .ss-item .arr{ color: var(--muted); font-size: 12px; flex-shrink: 0; }
@media (max-width: 767.98px){
  .search-bar .search-suggest{ border-radius: 12px; padding: 6px 0; }
  .search-bar .search-suggest .ss-item{ padding: 8px 14px; gap: 10px; }
  .search-bar .search-suggest .ss-item .si{ width: 28px; height: 28px; flex: 0 0 28px; }
  .search-bar .search-suggest .ss-item .st .title{ font-size: 13.5px; }
  .search-bar .search-suggest .ss-item .st .sub{ font-size: 11px; }
}

/* === Google-style voice mic for .search-bar .q (injected by voice-search.js) === */
.search-bar .q .q-mic{
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent;
  cursor: pointer; padding: 0; display: grid; place-items: center; position: relative;
  flex: 0 0 32px; margin-right: -2px;
  transition: background .15s, transform .1s;
}
.search-bar .q .q-mic:hover{ background: rgba(0,0,0,.05); }
.search-bar .q .q-mic:active{ transform: scale(.92); }
.search-bar .q .q-mic svg{ width: 20px; height: 20px; display: block; }
.search-bar .q .q-mic .mic-pulse{
  position: absolute; inset: -2px; border-radius: 50%;
  border: 2px solid #EA4335; opacity: 0; pointer-events: none;
}
.search-bar .q .q-mic.listening{ background: color-mix(in oklch, #EA4335 14%, transparent); }
.search-bar .q .q-mic.listening .mic-pulse{ animation: qMicPulse 1.2s ease-out infinite; }
@keyframes qMicPulse{
  0%{ opacity: 1; transform: scale(1); }
  100%{ opacity: 0; transform: scale(1.6); }
}
/* mic stays visible on all widths — voice search useful especially on mobile */
.search-bar .loc{ display:flex; align-items:center; gap: 6px; padding: 0 12px; color: var(--ink); font-weight:600; font-size: 14px; cursor:pointer; flex:0 0 auto; }
.search-bar .loc i.bi-geo-alt-fill{ color: var(--green); }
.search-bar .btn-search{
  background: var(--green); color:#fff; border:0; padding: 0 22px; border-radius:6px;
  font-weight:700; font-size:14px;
  display:inline-flex; align-items:center; gap: 6px; min-height: 42px;
  transition: background .15s;
}
.search-bar .btn-search:hover{ background: var(--green-600); }
.search-bar .btn-search:active{ transform: translateY(1px); }
.search-bar .count{ color:#fff; font-size: 12px; padding: 4px 4px 6px; opacity:.95; }
.search-bar .count strong{ font-weight:700; }

/* ===== CATEGORY LIST ===== */
.cats{ border:1px solid var(--line); border-radius:8px; padding: 20px; background:#fff; margin: 16px 0 20px; }
.cats-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px 28px; }
.cat-block{ font-size: 13px; min-width: 0; }
.cat-head{ display:flex; align-items:center; gap: 10px; margin-bottom: 0; padding: 4px 0; }
.cat-head .ic{
  width: 32px; height: 32px; flex:0 0 32px;
  display:grid; place-items:center;
  border-radius: 6px; background: var(--green-50); color: var(--green-700); font-size: 18px;
}
.cat-head a{ font-weight:800; color: var(--ink); font-size: 15px; line-height: 1.2; flex: 1; }
.cat-head a:hover{ color: var(--green-700); }
.cat-head .chev{
  background: none; border: 0; padding: 4px 6px; color: var(--muted); cursor:pointer;
  border-radius: 4px; transition: transform .2s, background .15s, color .15s;
  font-size: 14px;
}
.cat-head .chev:hover{ background: var(--soft); color: var(--ink); }
.cat-block.open .cat-head .chev,
.cats.expanded .cat-head .chev{ transform: rotate(180deg); }
.cat-block.active .cat-head .chev{ transform: rotate(180deg); }
.cat-sub{ list-style:none; padding:0 0 0 42px; margin: 6px 0 4px; display: none; flex-direction:column; gap: 4px; }
.cats.expanded .cat-sub{ display: flex; }

/* ===== FULL-WIDTH CATEGORY FLYOUT ===== */
.cat-flyout{
  display: none; margin-top: 14px; padding: 16px 18px;
  background: var(--green-50); border: 1px solid oklch(0.88 0.06 158); border-radius: 8px;
  position: relative;
}
.cats.flyout-open .cat-flyout{ display: block; animation: flyoutSlide .2s ease-out; }
@keyframes flyoutSlide{ from{ opacity: 0; transform: translateY(-6px); } to{ opacity: 1; transform: none; } }
.cat-flyout-head{
  display:flex; align-items:center; gap: 10px; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid oklch(0.88 0.06 158);
}
.cat-flyout-head .ic{
  width: 32px; height: 32px; flex: 0 0 32px; display:grid; place-items:center;
  border-radius: 6px; background:#fff; color: var(--green-700); font-size: 18px;
}
.cat-flyout-head .title{ font-size: 15px; font-weight: 800; color: var(--ink); flex: 1; }
.cat-flyout-head .all-link{ font-size: 12px; font-weight: 700; color: var(--green-700); white-space: nowrap; }
.cat-flyout-head .all-link:hover{ text-decoration: underline; }
.cat-flyout-head .close{
  width: 28px; height: 28px; border-radius: 6px; border: 0; background: transparent;
  color: var(--muted); font-size: 16px; cursor: pointer; transition: background .15s, color .15s;
  display:grid; place-items:center;
}
.cat-flyout-head .close:hover{ background:#fff; color: var(--ink); }
.cat-flyout-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 28px; }
@media (max-width: 767.98px){ .cat-flyout-grid{ grid-template-columns: repeat(2, 1fr); gap: 4px 16px; } }
@media (max-width: 479.98px){ .cat-flyout-grid{ grid-template-columns: 1fr; } }
.cat-flyout-grid a{
  font-size: 13px; padding: 5px 0; color: var(--green-700);
  display:flex; align-items:center; gap: 6px;
}
.cat-flyout-grid a::before{ content:"›"; color: var(--muted); font-weight:700; }
.cat-flyout-grid a:hover{ text-decoration: underline; color: var(--green-600); }

.cat-block.active .cat-head{ background: var(--green-50); border-radius: 6px; }
.cat-block.active .cat-head a{ color: var(--green-700); }
.cat-sub li a{ color: var(--green-700); font-size: 12.5px; display:inline-flex; align-items:baseline; gap:5px; }
.cat-sub li a::before{ content:"›"; color: var(--muted); font-weight:700; }
.cat-sub li a:hover{ text-decoration: underline; }
.cats-foot{ margin-top: 14px; text-align:center; }
.toggle-cats{
  display:inline-flex; align-items:center; gap:6px; padding: 8px 18px; border-radius: 999px;
  background:#fff; border:1px solid var(--green); color: var(--green-700);
  font-weight:700; font-size:13px; cursor:pointer; transition: background .15s;
}
.toggle-cats:hover{ background: var(--green-50); }
.toggle-cats i{ transition: transform .25s; }
.cats.expanded .toggle-cats i{ transform: rotate(180deg); }

/* ===== PROMO STRIP ===== */
.promo-strip{
  background: var(--info-bg); border: 1px solid var(--info-line); border-radius: 8px; padding: 10px 16px;
  display:flex; align-items:center; gap: 14px; margin-bottom: 20px; font-size: 13px;
}
.promo-strip .blog-tag{
  background: var(--green); color:#fff; font-weight:800; padding: 3px 8px; border-radius: 4px;
  font-size:11px; letter-spacing:.02em; text-transform:uppercase; white-space:nowrap;
}
.promo-strip strong{ color: var(--ink); }
.promo-strip .em{ color: var(--red); font-weight:800; }
.promo-strip .ico{ margin-left:auto; font-size:20px; color: var(--green-700); flex:0 0 20px; }

/* ===== SECTION ===== */
.sec{ margin: 22px 0; }
.sec-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom: 10px; gap: 10px; }
.sec-head h2{ font-size: 18px; font-weight: 800; color: var(--ink); margin:0; letter-spacing:-0.01em; }
.sec-head .more{ font-size: 12px; color: var(--green-700); font-weight:700; white-space:nowrap; }

/* ===== H-SCROLL ROW ===== */
.row-scroll{ position:relative; }
.row-scroll .track{
  display:flex; gap: 10px; overflow-x:auto; scroll-behavior: smooth; scrollbar-width: none;
  padding-bottom: 4px; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.row-scroll .track::-webkit-scrollbar{ display:none; }
.row-scroll .track > *{ scroll-snap-align: start; }
.row-scroll .nav-btn{
  position:absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius:50%;
  background:#fff; border:1px solid var(--line); color: var(--ink); font-size: 16px;
  display:grid; place-items:center; box-shadow: 0 4px 12px rgba(0,0,0,.08); cursor:pointer; z-index:2;
  transition: background .15s, transform .15s;
}
.row-scroll .nav-btn:hover{ background: var(--soft); transform: translateY(-50%) scale(1.05); }
.row-scroll .nav-btn.prev{ left: -10px; }
.row-scroll .nav-btn.next{ right: -10px; }

/* ===== AD CARD ===== */
.card-ad{
  flex: 0 0 calc((100% - 50px) / 6);
  min-width: 145px;
  background:#fff; border:1px solid var(--line); border-radius:8px; overflow:hidden;
  display:flex; flex-direction:column; text-decoration:none; color: var(--fg);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.card-ad:hover{ box-shadow: 0 4px 14px rgba(0,0,0,.07); border-color: var(--line-2); color: var(--fg); transform: translateY(-1px); }
.card-ad .media{ position:relative; aspect-ratio: 4/3; overflow:hidden; background: var(--soft); }

/* Carousel slides */
.media-slides{ position:absolute; inset:0; }
.media-slides img{
  position:absolute; inset:0; width:100%; height:100%; object-fit: cover;
  opacity: 0; transition: opacity .35s ease, transform .5s ease;
}
.media-slides img.active{ opacity: 1; }
/* 2026-05-19 — OLX/Allegro/Otomoto parity: subtle zoom on card hover (desktop only via :hover) */
.card-ad:hover .media-slides img.active{ transform: scale(1.04); }
.media-slides .ph-fallback{
  position:absolute; inset:0; width:100%; height:100%;
  display:flex; align-items:flex-end; padding: 6px;
  color: #9aa5af; font-family: ui-monospace, monospace; font-size: 10px;
}
.media-dots{
  position:absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display:flex; gap: 4px; z-index: 1;
}
.media-dots span{
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  transition: background .15s, width .15s;
}
.media-dots span.active{ background:#fff; width: 14px; border-radius: 3px; }

/* legacy ph still works */
.card-ad .media .ph{ width:100%; height:100%; display:flex; align-items:flex-end; padding: 6px; color: #9aa5af; font-family: ui-monospace, monospace; font-size: 10px; transition: transform .4s; }
.card-ad:hover .media .ph{ transform: scale(1.03); }
.card-ad .media .ph.a{ background: repeating-linear-gradient(135deg, #e3eaf0 0 10px, #ecf1f5 10px 20px); }
.card-ad .media .ph.b{ background: repeating-linear-gradient(135deg, #f0e8de 0 10px, #f5efe6 10px 20px); }
.card-ad .media .ph.c{ background: repeating-linear-gradient(135deg, #e0eee3 0 10px, #ecf5ee 10px 20px); }
.card-ad .media .ph.d{ background: repeating-linear-gradient(135deg, #ede1ea 0 10px, #f3eaf1 10px 20px); }
.card-ad .media .ph.e{ background: repeating-linear-gradient(135deg, #dbe3f0 0 10px, #e8eef7 10px 20px); }
.card-ad .badges{ position:absolute; top:6px; left:6px; display:flex; gap:4px; flex-wrap:wrap; z-index:1; }
.badge-pill{ font-size: 10px; font-weight:800; padding: 2px 6px; border-radius: 3px; text-transform:uppercase; letter-spacing:.04em; }
.badge-top{ background: var(--yellow); color: var(--ink); }
.badge-vip{ background: var(--red); color:#fff; }
.badge-promo{ background: var(--green); color:#fff; }
.badge-new{ background: var(--ink); color:#fff; }
.card-ad .fav{
  position:absolute; top:6px; right:6px; width:28px; height:28px; border-radius:50%;
  background: rgba(255,255,255,.95); display:grid; place-items:center; border:0;
  color: var(--muted); cursor:pointer; z-index:1;
  transition: color .15s, transform .15s, background .15s;
}
.card-ad .fav:hover{ color: var(--red); transform: scale(1.1); background:#fff; }
.card-ad .fav.active{ color: var(--red); background:#fff; }
.card-ad .gallery-c{
  position:absolute; bottom:6px; right:6px; background: rgba(0,0,0,.55); color:#fff; font-size:10px;
  padding: 2px 5px; border-radius:3px; display:inline-flex; align-items:center; gap:3px;
  font-weight:600;
}
.card-ad .body{ padding: 8px 10px 10px; display:flex; flex-direction:column; gap: 2px; flex:1; }
.card-ad .price{ font-size: 15px; font-weight:800; color: var(--ink); letter-spacing:-0.01em; line-height: 1.2; }
.card-ad .price .was{ color: var(--muted); text-decoration: line-through; font-size: 12px; font-weight:500; margin-left: 4px; }
.card-ad .ttl{ font-size: 12.5px; color: var(--fg); line-height: 1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height: 32px; }
.card-ad .meta{ display:flex; flex-wrap:wrap; gap: 2px 8px; color: var(--muted); font-size: 11px; }
.card-ad .loc-line{ color: var(--muted); font-size: 11px; display:flex; justify-content:space-between; gap:4px; margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--line); }
.card-ad .loc-line span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ===== GRID ===== */
.grid-ads{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-ads .card-ad{ flex: 1; min-width: 0; }

/* ===== BUTTONS ===== */
.more-btn{
  display:inline-flex; align-items:center; gap: 6px; padding: 10px 22px; border-radius: 6px;
  background:#fff; border: 1px solid var(--green); color: var(--green-700);
  font-weight: 700; font-size: 13px; cursor:pointer; transition: background .15s;
  text-decoration: none;
}
.more-btn:hover{ background: var(--green-50); color: var(--green-700); }
.btn-green{
  background: var(--green); color:#fff; border:0; border-radius: 6px; padding: 10px 18px;
  font-weight: 700; font-size: 14px; transition: background .15s; cursor:pointer;
  display:inline-flex; align-items:center; gap:6px; justify-content:center;
}
.btn-green:hover{ background: var(--green-600); color:#fff; }
.btn-green:active{ transform: translateY(1px); }

.btn-outline-1g{
  background:#fff; color: var(--ink); border:1px solid var(--line);
  border-radius: 6px; padding: 9px 16px; font-weight:600; font-size:14px;
  display:inline-flex; align-items:center; gap:6px; cursor:pointer; transition: all .15s;
  justify-content:center;
}
.btn-outline-1g:hover{ border-color: var(--ink); color: var(--ink); background: var(--soft); }

/* ===== LOCATION PICKER ===== */
.loc-picker{
  position: absolute; z-index: 1090;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  width: 640px; max-width: calc(100vw - 32px);
  box-shadow: 0 16px 40px -8px rgba(0,0,0,.18), 0 4px 12px -4px rgba(0,0,0,.08);
  display: none; max-height: 70vh; flex-direction: column;
  overflow: hidden;
}
.loc-picker.open{ display: flex; animation: locPop .15s ease-out; }
@keyframes locPop{ from{ opacity: 0; transform: translateY(-6px); } to{ opacity: 1; transform: none; } }

.loc-picker-head{
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  display: flex; gap: 8px; align-items: center;
}
.loc-picker-search-wrap{
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--soft); border-radius: 6px;
}
.loc-picker-search-wrap i{ color: var(--muted); font-size: 16px; }
.loc-picker-search-wrap input{
  flex: 1; border: 0; outline: 0; background: transparent;
  font: 600 14px 'Manrope', sans-serif; color: var(--fg); min-width: 0;
}
.loc-picker-search-wrap input::placeholder{ color: var(--muted); font-weight: 500; }
.loc-close{
  width: 36px; height: 36px; border: 0; background: transparent;
  border-radius: 6px; color: var(--muted); font-size: 18px; cursor: pointer;
  display: grid; place-items: center; transition: background .15s, color .15s;
}
.loc-close:hover{ background: var(--soft); color: var(--ink); }

.loc-picker-body{
  flex: 1; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
  min-height: 280px;
}
.loc-col{ display: flex; flex-direction: column; min-height: 0; }
.loc-col-regions{ border-right: 1px solid var(--line); }
.loc-col-head{
  padding: 8px 14px; font-size: 11px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; background: var(--soft);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px;
  min-height: 36px;
}
.loc-list{ flex: 1; overflow-y: auto; }
.loc-item{
  padding: 10px 14px; cursor: pointer; font-size: 13px; color: var(--fg);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--line);
  transition: background .12s, color .12s;
}
.loc-item:hover{ background: var(--soft); }
.loc-item.active{ background: var(--green-50); color: var(--green-700); font-weight: 700; }
.loc-item .cnt{ color: var(--muted); font-size: 11px; }
.loc-item > span{ display: flex; align-items: center; gap: 6px; min-width: 0; }
.loc-item.loc-all{ font-weight: 800; color: var(--ink); background: oklch(0.97 0.02 158); }
.loc-item.loc-all i{ color: var(--green-700); }
.loc-item > i.bi-chevron-right{ color: var(--muted); font-size: 12px; flex-shrink: 0; }
.loc-region-matches{ display: flex; flex-wrap: wrap; gap: 4px; padding-left: 8px; }
.loc-city-pill{
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px;
  background: var(--green-50); color: var(--green-700); border: 0; cursor: pointer;
}
.loc-city-pill:hover{ background: var(--green); color: #fff; }
.loc-empty{ padding: 24px 14px; text-align: center; color: var(--muted); font-size: 13px; }
.loc-back{ display: none; width: 24px; height: 24px; padding: 0; background: transparent; border: 0; color: var(--ink); cursor: pointer; font-size: 16px; }
.loc-back:hover{ color: var(--green-700); }

.loc-picker-foot{
  padding: 10px 14px; border-top: 1px solid var(--line); background: var(--soft);
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.loc-popular-label{ font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
.loc-popular{ display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.loc-popular .loc-city-pill{ background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.loc-popular .loc-city-pill:hover{ background: var(--green); color: #fff; border-color: var(--green); }

/* Mobile */
@media (max-width: 767.98px){
  .loc-picker.open{
    position: fixed !important; inset: 0 !important; width: 100% !important; max-width: 100% !important;
    max-height: 100% !important; border-radius: 0 !important; left: 0 !important; top: 0 !important;
  }
  .loc-picker-body{ grid-template-columns: 1fr; position: relative; }
  .loc-col-cities{
    position: absolute; inset: 0; background: #fff;
    transform: translateX(100%); transition: transform .2s ease;
  }
  .loc-picker.show-cities .loc-col-cities{ transform: translateX(0); }
  .loc-col-regions{ border-right: 0; }
  .loc-back{ display: inline-flex; align-items: center; justify-content: center; }
  body.loc-picker-open{ overflow: hidden; }
}

/* ===== ACCOUNT QUICK NAV (horizontal — for full-width pages) ===== */
.acc-quick-nav{
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  margin: 12px 0; padding: 6px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.acc-quick-nav::-webkit-scrollbar{ display: none; }
.acc-quick-nav a{
  flex: 0 0 auto; padding: 7px 12px; border-radius: 6px;
  font-weight: 700; font-size: 12.5px; color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: background .12s, color .12s;
}
.acc-quick-nav a:hover{ background: var(--soft); color: var(--ink); }
.acc-quick-nav a.active{ background: var(--green-50); color: var(--green-700); }
.acc-quick-nav a i{ font-size: 14px; }
.acc-quick-nav a .cnt{ background: var(--soft-2); padding: 0 6px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.acc-quick-nav a.active .cnt{ background: var(--green); color: #fff; }

.seller-toggle{
  display:inline-flex; background: var(--soft); border-radius: 6px; padding: 3px; gap: 2px;
  flex-shrink: 0;
}
.seller-toggle button{
  border:0; background:transparent; padding: 5px 12px; border-radius: 4px;
  color: var(--muted); font-weight: 700; font-size: 12px; cursor:pointer;
  display:inline-flex; align-items:center; gap: 5px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.seller-toggle button:hover{ color: var(--ink); }
.seller-toggle button.active{ background:#fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seller-toggle button i{ font-size: 13px; }
.seller-toggle button .count{ font-size: 10px; opacity: .6; font-weight: 600; }
@media (max-width: 575.98px){
  .seller-toggle button{ padding: 5px 8px; font-size: 11px; }
  .seller-toggle button .count{ display: none; }
}

/* Company branding on cards */
.card-ad .biz-row{
  display:flex; align-items:center; gap: 5px; padding-top: 4px; margin-top: 2px;
  font-size: 10.5px; color: var(--muted); border-top: 1px dashed var(--line);
}
.card-ad .biz-row .biz-avatar{
  width: 16px; height: 16px; flex: 0 0 16px; border-radius: 3px; display:grid; place-items:center;
  background: linear-gradient(135deg, #e8eef7, #d4e0f0); color: var(--ink); font-weight: 800; font-size: 9px;
}
.card-ad .biz-row .biz-name{
  font-weight: 700; color: var(--ink); white-space:nowrap; overflow:hidden; text-overflow: ellipsis;
}
.card-ad .biz-row .biz-verified{
  color: var(--green-700); flex: 0 0 auto;
}

/* In list-view, biz row stands out more */
.grid-ads.list .card-ad .biz-row{ font-size: 12px; padding-top: 8px; margin-top: 6px; }
.grid-ads.list .card-ad .biz-row .biz-avatar{ width: 22px; height: 22px; flex-basis: 22px; font-size: 10px; }

/* Card top-banner for VIP company ads */
.card-ad .biz-banner{
  position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(90deg, oklch(0.52 0.18 40), oklch(0.7 0.18 50));
  color:#fff; padding: 3px 8px; font-size: 10px; font-weight: 700; z-index: 1;
  display:flex; align-items:center; gap: 5px;
}
.card-ad .biz-banner i{ font-size: 11px; }
.card-ad.has-banner .media .badges{ top: 26px; }

/* ===== STORE PAGE ===== */
.store-hero{
  position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 16px;
  background: var(--ink); height: 200px;
}
@media (max-width: 575.98px){ .store-hero{ height: 140px; } }
.store-hero .cover{
  position:absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,30,24,.1) 0%, rgba(13,30,24,.75) 100%),
    linear-gradient(135deg, oklch(0.5 0.13 158), oklch(0.35 0.1 200));
}
.store-hero .cover.alt{
  background:
    linear-gradient(180deg, rgba(13,30,24,.1) 0%, rgba(13,30,24,.75) 100%),
    repeating-linear-gradient(135deg, oklch(0.32 0.07 158) 0 14px, oklch(0.38 0.08 158) 14px 28px);
}
.store-hero-content{
  position: relative; padding: 16px 20px; color:#fff; height: 100%;
  display:flex; align-items:flex-end; gap: 16px;
}
.store-logo{
  width: 80px; height: 80px; flex: 0 0 80px;
  background:#fff; border-radius: 12px; display:grid; place-items:center;
  color: var(--ink); font-family:'Manrope',sans-serif; font-weight: 800; font-size: 26px; letter-spacing:-.02em;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
}
@media (max-width: 575.98px){ .store-logo{ width: 60px; height: 60px; flex-basis: 60px; font-size: 20px; } }
.store-hero h1{ font-size: 24px; font-weight: 800; margin: 0 0 4px; letter-spacing:-.02em; line-height: 1.1; }
@media (max-width: 575.98px){ .store-hero h1{ font-size: 18px; } }
.store-hero .badges-row{ display:flex; flex-wrap:wrap; gap: 6px; font-size: 12px; }
.store-hero .badges-row .pl{
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
  padding: 3px 8px; border-radius: 4px; display:inline-flex; align-items:center; gap: 4px;
}
.store-hero .badges-row .pl.green{ background: var(--green); color:#fff; }
.store-hero .badges-row .pl i{ font-size: 12px; }

.store-stats{
  background:#fff; border:1px solid var(--line); border-radius: 8px; padding: 14px;
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; font-size: 13px;
}
@media (max-width: 767.98px){ .store-stats{ grid-template-columns: repeat(2, 1fr); } }
.store-stats .stat .num{ font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing:-.015em; }
.store-stats .stat .lbl{ color: var(--muted); font-size: 11px; font-weight: 600; }

.store-tabs{
  display:flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px;
  overflow-x: auto; scrollbar-width: none;
}
.store-tabs::-webkit-scrollbar{ display: none; }
.store-tabs a{
  padding: 10px 14px; font-weight: 700; font-size: 13px; color: var(--muted);
  border-bottom: 2px solid transparent; white-space: nowrap; display:inline-flex; align-items:center; gap: 5px;
  transition: color .15s, border-color .15s;
}
.store-tabs a:hover{ color: var(--ink); }
.store-tabs a.active{ color: var(--green-700); border-bottom-color: var(--green); }
.store-tabs a .cnt{ background: var(--soft); color: var(--muted); padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.store-tabs a.active .cnt{ background: var(--green-50); color: var(--green-700); }

.store-cta{
  background: var(--soft); border-radius: 8px; padding: 14px 16px;
  display:flex; align-items:center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap;
  font-size: 13px;
}
.store-cta strong{ color: var(--ink); }
.store-cta .actions{ margin-left:auto; display:flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 575.98px){ .store-cta .actions{ width: 100%; margin-left: 0; } .store-cta .actions a{ flex: 1; justify-content: center; } }
.stores{ background: var(--soft); border-radius: 8px; padding: 16px; margin: 20px 0; }
.stores-grid{ display:grid; grid-template-columns: 280px repeat(4, 1fr); gap: 14px; align-items:stretch; }
.stores-intro{ display:flex; flex-direction:column; justify-content:space-between; }
.stores-intro h3{ font-size: 18px; font-weight:800; color: var(--ink); margin: 0 0 6px; letter-spacing:-0.01em; }
.stores-intro p{ color: var(--muted); font-size: 12.5px; margin:0; }
.stores-intro .more-btn{ align-self:flex-start; margin-top: 10px; }
.store-card{ background:#fff; border:1px solid var(--line); border-radius:8px; padding: 12px; display:flex; flex-direction:column; gap: 4px; min-height: 110px; text-decoration:none; color: var(--fg); transition: border-color .15s, box-shadow .15s; }
.store-card:hover{ border-color: var(--line-2); box-shadow: 0 4px 12px rgba(0,0,0,.06); color: var(--fg); }
.store-card .logo-mock{ width:48px; height:48px; border-radius:6px; background: linear-gradient(135deg, #e8eef7, #d4e0f0); margin-bottom: 6px; display:grid; place-items:center; font-weight:800; color: var(--ink); font-size:13px; letter-spacing:.04em; }
.store-card .logo-mock.m2{ background: linear-gradient(135deg, #fce8d8, #f5d8b8); }
.store-card .logo-mock.m3{ background: linear-gradient(135deg, #d8f0d8, #b8e0b8); }
.store-card .logo-mock.m4{ background: linear-gradient(135deg, #f0d8e0, #e0b8c8); }
.store-card h4{ font-size: 13px; font-weight:700; color: var(--ink); margin:0; line-height: 1.2; }
.store-card .cnt{ color: var(--muted); font-size: 11px; }

/* ===== STORIES ===== */
.stories{ border:1px solid var(--line); border-radius: 8px; padding: 16px; margin: 20px 0; }
.stories h3{ font-size: 16px; font-weight:800; margin-bottom: 12px; color: var(--ink); }
.stories-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.story .who{ display:flex; align-items:center; gap: 8px; font-size:13px; font-weight:700; color: var(--ink); margin-bottom: 4px; }
.story .who i{ color: var(--muted); font-size: 16px; }
.story p{ font-size: 12.5px; color: var(--fg); margin: 0; font-style: italic; line-height: 1.45; }
.story p::before{ content:"\201E"; }
.story p::after{ content:"\201D"; }

/* ===== SEO ===== */
.seo{ padding: 8px 0 20px; }
.seo h2{ font-size: 17px; font-weight:800; color: var(--ink); margin-bottom: 6px; }
.seo p{ font-size: 12.5px; color: var(--muted); margin:0; line-height: 1.6; }

/* ===== FOOTER ===== */
.footer{ background: var(--soft); border-top:1px solid var(--line); margin-top: 20px; padding: 24px 0 12px; font-size: 13px; }
.footer-row{ display:grid; grid-template-columns: 240px 1fr 1fr 1fr; gap: 24px; align-items: start; }
.footer h6, .footer h3.footer-h, .footer h4.footer-h, .footer h5.footer-h, .footer .footer-h{ font-size: 13px; font-weight: 800; color: var(--ink); margin: 0 0 8px; line-height: 1.25; }
.footer a{ display:block; color: var(--fg); padding: 2px 0; font-size: 12.5px; }
.footer a:hover{ color: var(--green-700); }
.footer .post-cta{ margin-top: 12px; }
.footer .post-cta .btn-post-ad{ display:inline-flex; align-items:center; gap: 4px; }
.footer .stores-icons{ display:flex; gap:8px; margin-top: 10px; flex-wrap:wrap; }
.footer .stores-icons a{ display:inline-flex; gap: 6px; align-items:center; background: var(--ink); color:#fff; padding: 6px 10px; border-radius:6px; font-size: 11px; }
.footer .stores-icons a:hover{ background:#000; color:#fff; }
.footer .stores-icons a i{ font-size: 18px; }
.footer .stores-icons a small{ display:block; font-size:9px; opacity:.7; line-height:1; }
.footer .stores-icons a strong{ font-size:11px; }
.footer .pay-icons{ display:flex; gap:8px; align-items:center; margin-top: 10px; flex-wrap:wrap; }
.footer .pay-icons .pay{ background:#fff; border:1px solid var(--line); border-radius:4px; padding: 4px 8px; font-size: 10px; font-weight:800; color: var(--muted); letter-spacing:.04em; }
.footer-bottom{
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line);
  display:flex; justify-content:space-between; flex-wrap: wrap; gap: 10px; align-items:center;
  font-size: 11px; color: var(--muted);
}
.footer-bottom .lang{ font-size:11px; }
.footer-socials{ display:flex; gap: 6px; }
.footer-socials a{ width:28px; height:28px; border-radius:50%; background:#fff; border:1px solid var(--line); display:grid; place-items:center; color: var(--ink); padding:0; font-size: 14px; }
.footer-socials a:hover{ color: var(--green-700); }

/* ===== MOBILE FAB ===== */
.fab-post{
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1040;
  background: var(--red); color:#fff; border:0; border-radius: 999px;
  padding: 12px 18px; font-weight:800; font-size: 13px;
  box-shadow: 0 10px 22px -8px rgba(230,57,70,.5);
  display: none; align-items:center; gap: 6px; text-decoration:none;
  transition: transform .15s, box-shadow .2s;
}
.fab-post:active{ transform: scale(.96); color:#fff; }
.fab-post:hover{ color:#fff; }
/* Mobile ≤ 640px: circular icon-only FAB (Material-style) */
@media (max-width: 640px){
  .fab-post{
    width: 56px; height: 56px; padding: 0;
    border-radius: 50%;
    display: inline-flex; justify-content: center;
    background: var(--o-orange, #FE5504);
    box-shadow: 0 4px 16px rgba(254,85,4,.4);
    z-index: 1020;
    right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    font-size: 0; gap: 0;
  }
  .fab-post span,
  .fab-post::after{ display: none !important; content: none !important; }
  .fab-post i{ font-size: 26px; line-height: 1; }
}

/* ===== FULL-PAGE MENU ===== */
.menu-overlay{ position:fixed; inset:0; z-index:1080; visibility:hidden; pointer-events:none; }
.menu-overlay.open{ visibility:visible; pointer-events:auto; }
.menu-overlay .bg{
  position:absolute; inset:0; background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
  clip-path: circle(0% at calc(100% - 36px) 36px); transition: clip-path .55s cubic-bezier(.77,0,.18,1);
}
.menu-overlay.open .bg{ clip-path: circle(160% at calc(100% - 36px) 36px); }
.menu-overlay .menu-inner{
  position:relative; z-index:2; height:100%; overflow-y:auto; color:#fff;
  padding: 16px 16px calc(60px + env(safe-area-inset-bottom)); opacity:0; transition: opacity .25s .15s;
  display:flex; flex-direction:column; max-width: 1140px; margin: 0 auto;
}
.menu-overlay.open .menu-inner{ opacity:1; }
.menu-head{ display:flex; align-items:center; justify-content:space-between; height: 64px; }
.menu-head .logo .logo-mark .t{ color: #fff; }
.menu-head .logo .logo-tag{ color: rgba(255,255,255,.55); }
.menu-head .close{
  width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,.08); color:#fff; border:0;
  display:grid; place-items:center; font-size: 22px; cursor:pointer; transition: background .15s;
}
.menu-head .close:hover{ background: rgba(255,255,255,.15); color:#fff; }
.menu-quick{ display:grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 20px; }
.menu-quick .qb{
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); color:#fff;
  border-radius: 10px; padding: 14px 16px; display:flex; align-items:center; gap: 10px;
  font-weight:700; font-size: 14px; transition: background .15s;
}
.menu-quick .qb:hover{ background: rgba(255,255,255,.12); color:#fff; }
.menu-quick .qb i{ font-size: 20px; color: var(--green); }
.menu-quick .qb.red{ background: var(--red); border-color: transparent; }
.menu-quick .qb.red:hover{ background: var(--red-600); }
.menu-quick .qb.red i{ color:#fff; }
.menu-list{ list-style:none; padding:0; margin:0; }
.menu-list li{
  border-bottom:1px solid rgba(255,255,255,.06);
  opacity:0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.menu-overlay.open .menu-list li{ opacity:1; transform: none; }
.menu-overlay.open .menu-list li:nth-child(1){ transition-delay: .15s; }
.menu-overlay.open .menu-list li:nth-child(2){ transition-delay: .19s; }
.menu-overlay.open .menu-list li:nth-child(3){ transition-delay: .23s; }
.menu-overlay.open .menu-list li:nth-child(4){ transition-delay: .27s; }
.menu-overlay.open .menu-list li:nth-child(5){ transition-delay: .30s; }
.menu-overlay.open .menu-list li:nth-child(6){ transition-delay: .33s; }
.menu-overlay.open .menu-list li:nth-child(7){ transition-delay: .36s; }
.menu-overlay.open .menu-list li:nth-child(8){ transition-delay: .39s; }
.menu-overlay.open .menu-list li:nth-child(9){ transition-delay: .42s; }
.menu-overlay.open .menu-list li:nth-child(10){ transition-delay: .45s; }
.menu-overlay.open .menu-list li:nth-child(11){ transition-delay: .48s; }
.menu-overlay.open .menu-list li:nth-child(12){ transition-delay: .51s; }
.menu-list a{
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
  padding: 14px 4px; color:#fff; text-decoration:none; font-size: 17px; font-weight:700;
}
.menu-list a .left{ display:flex; align-items:center; gap: 14px; min-width: 0; }
.menu-list a .left span:not(.ic){ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.menu-list a .ic{
  width:36px; height:36px; flex:0 0 36px; border-radius:8px; background: rgba(255,255,255,.08); color:#fff;
  display:grid; place-items:center; font-size: 16px;
}
.menu-list a:hover .ic{ background: var(--green); }
.menu-list a .cnt{ color: rgba(255,255,255,.5); font-size: 12px; font-weight:500; white-space:nowrap; }
.menu-foot{ margin-top: auto; padding-top: 24px; display:flex; flex-direction:column; gap: 8px; color: rgba(255,255,255,.5); font-size: 12px; }
.menu-foot a{ color: rgba(255,255,255,.55); }
.menu-foot a:hover{ color:#fff; }
.menu-foot .socials{ display:flex; gap: 6px; margin-top: 6px; }
.menu-foot .socials a{ width:34px; height:34px; border-radius:8px; background: rgba(255,255,255,.06); display:grid; place-items:center; color:#fff; padding:0; }
.menu-foot .socials a:hover{ background: rgba(255,255,255,.12); }
body.menu-open{ overflow:hidden; }

/* ===== HAMBURGER MENU — LIGHT THEME OVERRIDE ===== */
.menu-overlay .menu-inner{ color: var(--ink); }
.menu-overlay .menu-head{ border-bottom: 1px solid var(--line); }
.menu-overlay .menu-head .logo, .menu-overlay .menu-head .logo .logo-mark .t{ color: var(--ink); }
.menu-overlay .menu-head .logo .logo-tag{ color: var(--muted); }
.menu-overlay .menu-head .close{ background: var(--soft-2); color: var(--ink); }
.menu-overlay .menu-head .close:hover{ background: var(--line); color: var(--ink); }

.menu-overlay .menu-search{
  display: flex; gap: 8px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; margin: 14px 0 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.menu-overlay .menu-search i{ color: var(--muted); font-size: 16px; }
.menu-overlay .menu-search input{
  flex: 1; border: 0; outline: 0; background: transparent;
  font: 600 14px 'Manrope', sans-serif; color: var(--fg); min-width: 0;
}
.menu-overlay .menu-search input::placeholder{ color: var(--muted); font-weight: 500; }
.menu-overlay .menu-search .go{
  background: var(--green); color: #fff; border: 0; padding: 7px 12px; border-radius: 6px;
  font-weight: 700; font-size: 12.5px; cursor: pointer;
}
.menu-overlay .menu-search .go:hover{ background: var(--green-600); }

.menu-overlay .menu-quick .qb{
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.menu-overlay .menu-quick .qb:hover{ background: var(--soft); border-color: var(--line-2); color: var(--ink); }
.menu-overlay .menu-quick .qb i{ color: var(--green-700); }
.menu-overlay .menu-quick .qb.red{ background: var(--red); border-color: var(--red); color: #fff; }
.menu-overlay .menu-quick .qb.red:hover{ background: var(--red-600); border-color: var(--red-600); }
.menu-overlay .menu-quick .qb.red i{ color: #fff; }

.menu-overlay .menu-list{
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
}
.menu-overlay .menu-list li{ border-bottom-color: var(--line); }
.menu-overlay .menu-list a{ color: var(--ink); padding: 13px 16px; font-size: 15px; }
.menu-overlay .menu-list a:hover{ background: var(--soft); }
.menu-overlay .menu-list a .ic{ background: var(--green-50); color: var(--green-700); }
.menu-overlay .menu-list a:hover .ic{ background: var(--green); color: #fff; }
.menu-overlay .menu-list a .cnt{ color: var(--muted); }

.menu-overlay .menu-foot{ color: var(--muted); padding-top: 18px; }
.menu-overlay .menu-foot a{ color: var(--muted); }
.menu-overlay .menu-foot a:hover{ color: var(--ink); }
.menu-overlay .menu-foot .socials a{
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.menu-overlay .menu-foot .socials a:hover{ background: var(--soft); color: var(--green-700); }
.menu-overlay .menu-foot .lang.lang-flat span{ color: var(--muted) !important; }
.menu-overlay .menu-foot .lang.lang-flat span.active{ color: var(--ink) !important; font-weight: 800; }
.menu-overlay .menu-foot .lang.lang-flat .flag{ box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

/* ===== BREADCRUMBS ===== */
.crumbs{ display:flex; flex-wrap:wrap; gap: 4px 6px; align-items:center; font-size: 12px; color: var(--muted); padding: 10px 0; }
.crumbs a{ color: var(--green-700); }
.crumbs a:hover{ text-decoration: underline; }
.crumbs .sep{ color: var(--muted); opacity:.7; }
.crumbs .current{ color: var(--ink); font-weight:600; }

/* ===== FORM ELEMENTS ===== */
.form-control, .form-select{
  border:1px solid var(--line); border-radius: 6px; padding: 9px 12px;
  font: 500 13px 'Manrope', sans-serif; color: var(--fg); background:#fff; width: 100%;
}
.form-control:focus, .form-select:focus{
  border-color: var(--line); box-shadow: none; outline: 0;
}
.form-control::placeholder{ color: #9aa5af; }
.form-label{ font-weight:700; font-size: 12.5px; color: var(--ink); margin-bottom: 4px; display:block; }
.form-text-hint{ font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* TABLET (768-991) */
@media (max-width: 991.98px){
  .cats-grid{ grid-template-columns: repeat(3, 1fr); gap: 18px 20px; }
  .grid-ads{ grid-template-columns: repeat(3, 1fr); }
  .stores-grid{ grid-template-columns: 1fr 1fr; gap: 12px; }
  .stores-intro{ grid-column: 1 / -1; }
  .row-scroll .nav-btn{ display:none; }
  .top-links .acc{ display:none; }
  .lang{ display:none; }
}

/* MOBILE LARGE (576-767) */
@media (max-width: 767.98px){
  .topbar-inner{ height: 60px; gap: 10px; }
  .search-bar .loc{
    padding: 0 8px; font-size: 12px; gap: 4px;
  }
  .search-bar .loc i.bi-chevron-down{ display: none; }
  .search-bar .loc .loc-value{ max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .search-bar .btn-search{ padding: 0 16px; min-height: 44px; }
  .search-bar .btn-search span{ display: none; }
  .stories-grid{ grid-template-columns: 1fr; gap: 12px; }
  .footer-row{ grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .fab-post{ display:inline-flex; }
  body{ padding-bottom: 80px; }
  /* PL badge: hide on mobile */
  .pl-badge{ display: none !important; }
  /* Btn post ad: shorten to "Dodaj" */
  .btn-post-ad span{ display: none; }
  .btn-post-ad::after{ content: "Dodaj"; }
  /* Categories: inline expansion under each block (not flyout) */
  .cat-block.inline-open .cat-sub{ display: flex; }
  .cat-block.inline-open .cat-head .chev{ transform: rotate(180deg); color: var(--green-700); }
  .cats.flyout-open .cat-flyout{ display: none !important; }
}

/* MOBILE (480-575) */
@media (max-width: 575.98px){
  html, body{ font-size: 13.5px; }
  .topbar-inner{ height: 56px; gap: 8px; }
  .logo-mark .b, .logo-mark .d{ font-size: 26px; }
  .logo-mark .t{ font-size: 19px; }
  .logo-tag{ display: none; }
  .top-links{ gap: 8px; }
  .top-links .icon-link.heart, .top-links .icon-link.chat, .top-links a[href="auth.html"]{ display:none; }
  .btn-post-ad span{ display: none; }
  .btn-post-ad{ padding: 8px 10px; }
  .cats{ padding: 14px; margin: 12px 0 16px; }
  .cats-grid{ grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .cat-head .ic{ width: 28px; height: 28px; flex:0 0 28px; font-size: 16px; }
  .cat-head a{ font-size: 14px; }
  .cat-sub{ padding-left: 36px; }
  .cat-sub li a{ font-size: 12px; }
  .promo-strip{ padding: 8px 12px; gap: 10px; font-size: 12px; }
  .promo-strip .ico{ display: none; }
  .sec{ margin: 18px 0; }
  .sec-head h2{ font-size: 16px; }
  .grid-ads{ grid-template-columns: 1fr 1fr; gap: 8px; }
  .card-ad{ min-width: 0; flex: 0 0 calc(50% - 4px); }
  .card-ad .body{ padding: 6px 8px 8px; }
  .card-ad .price{ font-size: 14px; }
  .card-ad .ttl{ font-size: 12px; min-height: 30px; }
  .card-ad .meta, .card-ad .loc-line{ font-size: 10.5px; }
  .stores{ padding: 12px; }
  .stores-grid{ grid-template-columns: 1fr 1fr; gap: 10px; }
  .stories{ padding: 14px; margin: 16px 0; }
  .seo h2{ font-size: 15px; }
  .footer{ padding: 20px 0 12px; }
  .footer-row{ grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .footer-bottom{ flex-direction: column; align-items:flex-start; gap: 8px; }
  .menu-head{ height: 56px; }
  .menu-list a{ font-size: 16px; padding: 12px 4px; }
  .menu-list a .ic{ width: 32px; height: 32px; flex:0 0 32px; font-size: 15px; }
}

/* SMALL MOBILE (360-479) */
@media (max-width: 479.98px){
  .topbar-inner{ gap: 6px; }
  .pl-badge{ font-size: 10px; padding: 2px 6px 2px 4px; }
  .pl-badge .flag{ width: 16px; height: 11px; flex:0 0 16px; }
  .search-bar form{ gap: 4px; padding: 4px; }
  .search-bar .q{ padding: 0 8px; }
  .search-bar .q input{ font-size: 13px; padding: 8px 12px 8px 0; }
  .search-bar .btn-search{ padding: 0 12px; min-height: 40px; }
  .cats-grid{ grid-template-columns: 1fr; gap: 12px; }
  .cat-block.extra{ /* still hidden until expanded */ }
  .grid-ads{ grid-template-columns: 1fr 1fr; }
  .stores-grid{ grid-template-columns: 1fr; }
  .footer-row{ grid-template-columns: 1fr; gap: 16px; }
  .menu-quick .qb{ padding: 12px; font-size: 13px; }
  .menu-quick .qb i{ font-size: 18px; }
}

/* TINY MOBILE (320-359, iPhone SE 1st gen) */
@media (max-width: 359.98px){
  html, body{ font-size: 13px; }
  .wrap{ padding: 0 10px; }
  .topbar-inner{ height: 52px; gap: 6px; }
  .logo-mark .b, .logo-mark .d{ font-size: 24px; }
  .logo-mark .t{ font-size: 17px; }
  .pl-badge{ display:none; }
  .top-links{ gap: 6px; }
  .btn-post-ad{ padding: 6px 8px; font-size: 12px; }
  .hamburger{ width: 36px; height: 36px; font-size: 20px; flex:0 0 36px; }
  .search-bar{ padding: 8px 0; }
  .search-bar .count{ font-size: 11px; }
  .search-bar .q input{ font-size: 12.5px; }
  .search-bar .btn-search{ padding: 0 10px; min-height: 38px; }
  .cats{ padding: 12px; }
  .cats-grid{ grid-template-columns: 1fr; gap: 10px; }
  .promo-strip{ font-size: 11px; padding: 8px 10px; gap: 8px; }
  .promo-strip .blog-tag{ font-size: 10px; padding: 2px 6px; }
  .grid-ads{ gap: 6px; }
  .card-ad .body{ padding: 6px 7px 7px; }
  .card-ad .price{ font-size: 13.5px; }
  .card-ad .ttl{ font-size: 11.5px; -webkit-line-clamp: 2; min-height: 28px; }
  .card-ad .meta{ font-size: 10px; }
  .card-ad .loc-line{ font-size: 10px; }
  .badge-pill{ font-size: 9px; padding: 1px 5px; }
  .fab-post{ width: 52px; height: 52px; padding: 0; font-size: 0; }
  .fab-post i{ font-size: 24px; }
  .stories h3{ font-size: 14px; }
  .story p{ font-size: 12px; }
  .seo h2{ font-size: 14px; }
  .footer{ padding: 16px 0 10px; }
  .menu-head{ height: 52px; }
  .menu-quick{ grid-template-columns: 1fr; gap: 6px; }
  .menu-list a{ font-size: 15px; padding: 12px 2px; }
}

/* ===== GLOBAL MOBILE POLISH ===== */
html, body{ overflow-x: hidden; }
img, svg, video, iframe{ max-width: 100%; height: auto; }

@media (max-width: 767.98px){
  .wrap{ padding-left: 12px; padding-right: 12px; }
  .acc-section, .form-section, .cats, .stories, .saved-searches, .acc-side,
  .filters, .toolbar, .promo-strip, .seller, .store-info{
    max-width: 100%; box-sizing: border-box;
  }
  .top-links{ gap: 6px; }
  .top-links .lang{ display: none; }
  .top-links .icon-link.heart, .top-links .icon-link.chat{ display: none; }
  .user-menu-trigger{ padding: 4px !important; }
  .user-menu-trigger .label, .user-menu-trigger .chev{ display: none !important; }
  .search-bar form{ padding: 4px; gap: 4px; }
  .search-bar .q{ padding: 0 6px; }
  .search-bar .q input{ font-size: 13px; }
  .form-control, .form-select, input, textarea, select{ max-width: 100%; box-sizing: border-box; }
  .pay-table, .acc-section table{ display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  .acc-side, .filters, .post-aside, .post-steps, .seller, .store-info{ position: static !important; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; gap: 12px; }
  .user-menu-dropdown{ left: 8px !important; right: 8px !important; max-width: calc(100vw - 16px); }
  .crumbs{ font-size: 11px; line-height: 1.6; }
  h1, h2, h3{ word-wrap: break-word; overflow-wrap: anywhere; }
  .gallery .arrow{ width: 36px; height: 36px; font-size: 14px; }
}

@media (max-width: 359.98px){
  .wrap{ padding-left: 8px; padding-right: 8px; }
  .topbar-inner{ gap: 4px; }
  .top-links{ gap: 4px; }
  .btn-post-ad{ padding: 6px 10px; font-size: 11.5px; }
  .hamburger{ width: 34px; height: 34px; font-size: 18px; flex: 0 0 34px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* Focus visible (accessibility) */
*:focus-visible{
  outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px;
}
.btn-post-ad:focus-visible, .btn-green:focus-visible, .more-btn:focus-visible, .toggle-cats:focus-visible{
  outline-offset: 3px;
}

/* === ZERO BORDERS ON FOCUSED INPUTS — global override ===
   User requested no visible outline/ring/border change on any
   text/search/select field when focused. Wins against Bootstrap
   .form-control:focus via !important. Focus indicators remain on
   buttons/links for keyboard accessibility. */
input:focus,
input:focus-visible,
input:active,
textarea:focus,
textarea:focus-visible,
textarea:active,
select:focus,
select:focus-visible,
select:active,
.form-control:focus,
.form-control:focus-visible,
.form-control:active,
.form-select:focus,
.form-select:focus-visible,
.form-select:active,
[contenteditable]:focus,
[contenteditable]:focus-visible{
  outline: 0 !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}
/* Also kill border-color shift on focus for typical input wrappers */
input:focus, textarea:focus, select:focus,
.form-control:focus, .form-select:focus{
  border-color: var(--line) !important;
}
/* Wrappers that fake an input (focus-within ring) */
.search-bar:focus-within,
.search-bar .q:focus-within,
.mega-search:focus-within,
.mega-search-inner:focus-within,
.loc-picker-search-wrap:focus-within,
.menu-overlay .menu-search:focus-within{
  outline: 0 !important;
  box-shadow: none !important;
}

/* ===========================================================
   MEGA-SEARCH & SEARCH-BAR — 50/50 WIDTH SPLIT
   Phrase input and location chip ALWAYS share remaining
   space equally. Button auto-sized. Stacks 100% on mobile.
   =========================================================== */
.mega-search-inner > input{ flex: 1 1 0 !important; min-width: 0 !important; width: 0 !important; }
.mega-search-inner > .mega-loc{
  flex: 1 1 0 !important; min-width: 0 !important; max-width: none !important; width: 0 !important;
}
.mega-search-inner > .mega-loc .loc-value{
  max-width: 100% !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
@media (max-width: 767.98px){
  .mega-search-inner > .mega-loc{ flex: 1 1 100% !important; width: 100% !important; }
  /* Keep input + mic together on row 1, mic pushed FAR RIGHT */
  .mega-search-inner > input{ flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; }
  .mega-search-inner > .mega-mic{ flex: 0 0 36px !important; margin-left: auto !important; margin-right: 0 !important; }
}
.search-bar .q{ flex: 1 1 0 !important; min-width: 0 !important; width: 0 !important; }
.search-bar .loc{ flex: 1 1 0 !important; min-width: 0 !important; width: 0 !important; max-width: none !important; }
.search-bar .loc .loc-value{ max-width: 100% !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767.98px){
  .search-bar{ flex-wrap: wrap !important; }
  .search-bar .q, .search-bar .loc{ flex: 1 1 100% !important; width: 100% !important; }
}

/* ===========================================================
   TOP PROMO STRIP — NEVER WRAP
   The strip (.promo-strip-top .wrap) is `flex-wrap: wrap` by
   default which causes "Kup 1G" to drop to a new row on tablet
   widths. Force single-row with overflow hidden, and progressively
   hide low-priority items (promo-txt → avatars → theme-pick) as
   space shrinks so important CTAs stay visible.
   Loaded GLOBALLY for every -orange page via styles-orange.css.
   =========================================================== */
.promo-strip-top .wrap{
  flex-wrap: nowrap !important;
  overflow: hidden;
  min-width: 0;
}
.promo-strip-top .wrap > *{ flex-shrink: 0; }
.promo-strip-top .promo-txt{
  flex-shrink: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-strip-top .promo-cta{ white-space: nowrap; }

/* Hide promo-txt earlier (1199 instead of 767) so tablets have room
   for both "Pakiety ogłoszeń" and "Kup 1G" without wrapping. */
@media (max-width: 1199.98px){
  .promo-strip-top .promo-txt{ display: none !important; }
}
/* At tablet portrait, also hide the avatar stack to free space */
@media (max-width: 991.98px){
  .promo-strip-top .avatars{ display: none !important; }
}
/* At small-tablet / large-phone, drop the theme-picker label fully
   so dots stay but text doesn't clip mid-word */
@media (max-width: 880px){
  .promo-strip-top .promo-theme-pick .ptp-label{ display: none !important; }
}
/* Below 700px: hide secondary CTA ("Kup 1G"), keep primary
   ("Pakiety ogłoszeń") + theme-pick */
@media (max-width: 700px){
  .promo-strip-top .promo-cta-buy{ display: none !important; }
}

/* === FOOTER "Dodaj ogłoszenie" button — mobile shrink === */
/* The footer CTA has raw text (no <span> wrapper) so the global
   `.btn-post-ad span{ display:none }` mobile rule didn't shrink it.
   These rules size the footer button down independently on small screens. */
@media (max-width: 767.98px){
  .footer .post-cta .btn-post-ad{
    padding: 7px 12px;
    font-size: 12px;
    gap: 5px;
    border-radius: 6px;
  }
  .footer .post-cta .btn-post-ad i{ font-size: 14px; }
}
@media (max-width: 575.98px){
  .footer .post-cta .btn-post-ad{
    padding: 6px 10px;
    font-size: 11.5px;
    border-radius: 5px;
  }
  .footer .post-cta .btn-post-ad i{ font-size: 13px; }
}
@media (max-width: 380px){
  .footer .post-cta .btn-post-ad{
    padding: 5px 9px;
    font-size: 11px;
  }
}


/* ===========================================================
   DARK MODE — soft, easy on eyes (Notion/GitHub style)
   Activated via html[data-mode="dark"]. Persisted by dark-mode.js.
   All -orange pages get this for free via shared CSS variables.
   =========================================================== */
html[data-mode="dark"]{
  --ink: #f1f5f9;
  --fg: #cbd5e1;
  --muted: #94a3b8;
  --line: #3B6E76;
  --soft: #2E5C64;
  --green-50: rgba(34,197,94,.12);
  color-scheme: dark;
}
html[data-mode="dark"] body{ background: #1E4044 !important; color: var(--fg); }
html[data-mode="dark"] .topbar{ background: #1E4044 !important; border-color: var(--line) !important; }
html[data-mode="dark"] .footer{ background: var(--soft) !important; border-color: var(--line) !important; color: var(--fg); }
html[data-mode="dark"] .footer h6, html[data-mode="dark"] .footer .footer-h{ color: var(--ink); }
html[data-mode="dark"] .footer a{ color: var(--fg); }
html[data-mode="dark"] .cats,
html[data-mode="dark"] .acc-section,
html[data-mode="dark"] .acc-side,
html[data-mode="dark"] .search-bar,
html[data-mode="dark"] .filters-panel,
html[data-mode="dark"] .side-card,
html[data-mode="dark"] .stories,
html[data-mode="dark"] .ad-section,
html[data-mode="dark"] .blog-card,
html[data-mode="dark"] .card-ad,
html[data-mode="dark"] .job-card,
html[data-mode="dark"] .plan,
html[data-mode="dark"] .article-body,
html[data-mode="dark"] .topic-card,
html[data-mode="dark"] .ad-row,
html[data-mode="dark"] .offer-row,
html[data-mode="dark"] .stat-card,
html[data-mode="dark"] .toolbar,
html[data-mode="dark"] .quick-row a,
html[data-mode="dark"] .stores-icons a,
html[data-mode="dark"] .promo-banner,
html[data-mode="dark"] .pay-table,
html[data-mode="dark"] table,
html[data-mode="dark"] .loc-picker,
html[data-mode="dark"] .search-suggest,
html[data-mode="dark"] .cats-mega.open,
html[data-mode="dark"] .pl-info-popup,
html[data-mode="dark"] .theme-switcher,
html[data-mode="dark"] .menu-overlay .menu-inner{
  background: #1A383C !important;
  color: var(--fg);
  border-color: var(--line) !important;
}
html[data-mode="dark"] .menu-overlay .bg{ background: rgba(0,0,0,.7) !important; }
html[data-mode="dark"] input,
html[data-mode="dark"] textarea,
html[data-mode="dark"] select,
html[data-mode="dark"] .form-control,
html[data-mode="dark"] .form-select{
  background: var(--soft) !important; color: var(--ink) !important; border-color: var(--line) !important;
}
html[data-mode="dark"] input::placeholder,
html[data-mode="dark"] textarea::placeholder{ color: var(--muted) !important; }
html[data-mode="dark"] .search-bar .q,
html[data-mode="dark"] .mega-search-inner{ background: #1A383C !important; }
/* Inputs inside mega-search / search-bar are transparent — inherit wrapper bg */
html[data-mode="dark"] .mega-search-inner input,
html[data-mode="dark"] .search-bar .q input{
  background: transparent !important;
  color: #f1f5f9 !important;
}
/* Hamburger in dark = active theme color (matches "Dodaj ogłoszenie" pill next to it) */
html[data-mode="dark"] .hamburger,
html[data-mode="dark"] .top-actions .hamburger,
html[data-mode="dark"] button.hamburger{
  background: var(--o-orange) !important;
  color: #fff !important;
}
html[data-mode="dark"] .hamburger:hover,
html[data-mode="dark"] .top-actions .hamburger:hover{
  background: var(--o-orange-dark) !important;
}
html[data-mode="dark"] .search-bar .loc,
html[data-mode="dark"] .mega-search .mega-loc{ background: #1A383C !important; color: var(--fg); }
html[data-mode="dark"] img:not(.no-dim){ filter: brightness(.92); }
html[data-mode="dark"] .logo-mark .d, html[data-mode="dark"] .logo-mark .t{ filter: brightness(1.1); }
html[data-mode="dark"] .logo-tag{ color: var(--muted) !important; }
html[data-mode="dark"] a{ color: var(--ink); }
html[data-mode="dark"] hr{ border-color: var(--line); }
html[data-mode="dark"] .badge-pill{ filter: brightness(.85); }
html[data-mode="dark"] *::-webkit-scrollbar-track{ background: #1E4044; }
html[data-mode="dark"] *::-webkit-scrollbar-thumb{ background: var(--line); border-radius: 4px; }
html[data-mode="dark"] .promo-strip-top{ filter: brightness(.7); }

/* ===========================================================
   DARK-MODE TOGGLE PILL — sits in promo strip after color picker
   Pro sun↔moon switch with animated thumb + day/night sky bg
   =========================================================== */
.mode-pill{
  position: relative; flex-shrink: 0;
  width: 54px; height: 28px; border-radius: 999px;
  background: linear-gradient(135deg, #87CEEB 0%, #5FB8D4 100%);
  border: 0; padding: 0; cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  transition: background .35s ease;
  overflow: hidden;
}
.mode-pill .mp-track{ position: absolute; inset: 0; display: block; }
.mode-pill .mp-stars{
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .35s ease;
}
.mode-pill .mp-stars i{
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 3px rgba(255,255,255,.7);
}
.mode-pill .mp-stars i:nth-child(1){ top: 5px; left: 8px; }
.mode-pill .mp-stars i:nth-child(2){ top: 9px; left: 14px; width: 1.5px; height: 1.5px; }
.mode-pill .mp-stars i:nth-child(3){ top: 16px; left: 6px; width: 1.5px; height: 1.5px; }
.mode-pill .mp-stars i:nth-child(4){ top: 7px; left: 22px; }
.mode-pill .mp-stars i:nth-child(5){ top: 19px; left: 18px; width: 1.5px; height: 1.5px; }
.mode-pill .mp-stars i:nth-child(6){ top: 12px; left: 28px; width: 1px; height: 1px; }
.mode-pill .mp-thumb{
  position: absolute; top: 2px; left: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.18);
  display: grid; place-items: center;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .35s ease;
  overflow: hidden;
}
.mode-pill .mp-thumb svg{
  width: 16px; height: 16px;
  position: absolute; inset: 0; margin: auto;
  transition: opacity .25s ease, transform .35s ease;
}
.mode-pill .ic-sun{ opacity: 1; }
.mode-pill .ic-moon{ opacity: 0; transform: rotate(-90deg) scale(.5); }
.mode-pill:hover .mp-thumb{ box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.mode-pill:active .mp-thumb{ transform: scale(.92); }
html[data-mode="dark"] .mode-pill{
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
html[data-mode="dark"] .mode-pill .mp-stars{ opacity: 1; }
html[data-mode="dark"] .mode-pill .mp-thumb{
  background: #f8fafc;
  transform: translateX(26px);
}
html[data-mode="dark"] .mode-pill:active .mp-thumb{ transform: translateX(26px) scale(.92); }
html[data-mode="dark"] .mode-pill .ic-sun{ opacity: 0; transform: rotate(90deg) scale(.5); }
html[data-mode="dark"] .mode-pill .ic-moon{ opacity: 1; transform: none; }

@media (max-width: 700px){
  .mode-pill{ width: 46px; height: 24px; }
  .mode-pill .mp-thumb{ width: 20px; height: 20px; }
  .mode-pill .mp-thumb svg{ width: 14px; height: 14px; }
  html[data-mode="dark"] .mode-pill .mp-thumb{ transform: translateX(22px); }
}


/* ===========================================================
   DARK MODE — refinements after visual review
   =========================================================== */
html[data-mode="dark"] .hero-search-area,
html[data-mode="dark"] section.hero-search-area,
html[data-mode="dark"] .hero-search-area .wrap{
  background: #1E4044 !important;
}
/* The white hero search "halo" — neutralize */
html[data-mode="dark"] .mega-search{
  background: linear-gradient(90deg,
    color-mix(in oklch, var(--o-orange) 35%, #1E4044) 0%,
    color-mix(in oklch, var(--o-orange) 55%, #1E4044) 50%,
    var(--o-orange) 100%
  ) !important;
}

/* Toolbar + chips less burning */
html[data-mode="dark"] .toolbar{ background: #1A383C !important; border-color: var(--line) !important; }
html[data-mode="dark"] .chip{
  background: color-mix(in oklch, var(--o-orange) 18%, transparent) !important;
  color: var(--o-orange-mid, var(--ink)) !important;
  border: 1px solid color-mix(in oklch, var(--o-orange) 30%, transparent) !important;
}
html[data-mode="dark"] .chip button{ color: inherit !important; }

/* Seller-toggle */
html[data-mode="dark"] .toolbar .seller-toggle{ background: #1E4044 !important; }
html[data-mode="dark"] .toolbar .seller-toggle button.active{ background: #1A383C !important; color: var(--o-orange) !important; }
html[data-mode="dark"] .toolbar .seller-toggle button{ color: var(--muted) !important; }
html[data-mode="dark"] .toolbar .seller-toggle .count{ background: rgba(255,255,255,.08) !important; color: var(--muted) !important; }
html[data-mode="dark"] .toolbar .seller-toggle button.active .count{ background: color-mix(in oklch, var(--o-orange) 25%, transparent) !important; color: var(--o-orange-mid, #fff) !important; }

/* View-toggle */
html[data-mode="dark"] .view-toggle{ background: #1E4044 !important; }
html[data-mode="dark"] .view-toggle button.active{ background: #1A383C !important; color: var(--o-orange) !important; }

/* Side filters card — inputs and labels */
html[data-mode="dark"] .filters-panel h3{ color: var(--ink); border-color: var(--line) !important; }
html[data-mode="dark"] .filters-panel label{ color: var(--fg); }
html[data-mode="dark"] .filter-check input + span,
html[data-mode="dark"] .filters-panel .form-control{ color: var(--ink); }
html[data-mode="dark"] .pill-btn{ background: var(--soft) !important; color: var(--fg) !important; border-color: var(--line) !important; }

/* Breadcrumbs */
html[data-mode="dark"] .crumbs{ color: var(--muted); }
html[data-mode="dark"] .crumbs a{ color: var(--o-orange); }
html[data-mode="dark"] .crumbs .sep{ color: var(--muted); }

/* Cards */
html[data-mode="dark"] .card-ad{ background: #1A383C !important; border-color: var(--line) !important; }
html[data-mode="dark"] .card-ad:hover{ border-color: var(--o-orange) !important; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5) !important; }
html[data-mode="dark"] .card-ad .title,
html[data-mode="dark"] .card-ad .ttl{ color: var(--ink); }
html[data-mode="dark"] .card-ad .price{ color: var(--ink); }
html[data-mode="dark"] .card-ad .meta,
html[data-mode="dark"] .card-ad .loc-line{ color: var(--muted); }

/* Image brightness softer */
html[data-mode="dark"] img:not(.no-dim){ filter: brightness(.85) !important; }

/* Categories list */
html[data-mode="dark"] .cats{ background: #1A383C !important; border-color: var(--line) !important; }
html[data-mode="dark"] .cat-block,
html[data-mode="dark"] .cat-head a{ color: var(--ink); }
html[data-mode="dark"] .cat-sub li a{ color: var(--muted); }
html[data-mode="dark"] .cat-block:hover .cat-head{ background: rgba(255,255,255,.03); border-radius: 8px; }

/* "Pokaż więcej kategorii" button outline */
html[data-mode="dark"] .toggle-cats{
  background: rgba(255,255,255,.04) !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .toggle-cats:hover{
  background: color-mix(in oklch, var(--o-orange) 12%, transparent) !important;
  border-color: var(--o-orange) !important;
  color: var(--o-orange) !important;
}

/* NEW BLOG promo strip */
html[data-mode="dark"] .promo-strip{ background: #1A383C !important; border-color: var(--line) !important; color: var(--fg); }
html[data-mode="dark"] .promo-strip strong{ color: var(--ink); }

/* Top promo strip in dark — keep color but soft */
html[data-mode="dark"] .promo-strip-top{ filter: brightness(.55) saturate(1.1); }
html[data-mode="dark"] .promo-strip-top .promo-cta{ background: #1E4044 !important; color: #fff !important; }

/* Search-suggest dropdown */
html[data-mode="dark"] .search-suggest{ background: #1A383C !important; border-color: var(--line) !important; box-shadow: 0 16px 40px -8px rgba(0,0,0,.6) !important; }
html[data-mode="dark"] .search-suggest .ss-item{ color: var(--fg); }
html[data-mode="dark"] .search-suggest .ss-item:hover,
html[data-mode="dark"] .search-suggest .ss-item.focused{ background: rgba(255,255,255,.04) !important; color: var(--ink); }
html[data-mode="dark"] .search-suggest .ss-item .si{ background: var(--soft); color: var(--muted); }
html[data-mode="dark"] .search-suggest .ss-item.trending .si{ background: rgba(245,158,11,.15); color: #FCD34D; }
html[data-mode="dark"] .search-suggest .ss-item .st .title{ color: var(--ink); }
html[data-mode="dark"] .search-suggest .ss-item .st .sub{ color: var(--muted); }
html[data-mode="dark"] .search-suggest .ss-label{ color: var(--muted); }

/* Filter chips strip */
html[data-mode="dark"] .filter-bar,
html[data-mode="dark"] .crumbs-bar{ background: transparent !important; }

/* "Zapisz wyszukiwanie" button */
html[data-mode="dark"] .save-search-btn,
html[data-mode="dark"] .btn-outline-1g{
  background: rgba(255,255,255,.04) !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .save-search-btn:hover{
  border-color: var(--o-orange) !important;
  color: var(--o-orange) !important;
}

/* H1 / H2 in dark = white not muted */
html[data-mode="dark"] h1, html[data-mode="dark"] h2, html[data-mode="dark"] h3, html[data-mode="dark"] h4, html[data-mode="dark"] h5, html[data-mode="dark"] h6{
  color: var(--ink);
}

/* Section headers + "see all" */
html[data-mode="dark"] .sec-head{ color: var(--ink); }
html[data-mode="dark"] .sec-head .more{ color: var(--o-orange); }

/* Chevron arrows in dark */
html[data-mode="dark"] .cat-head .chev{ background: rgba(255,255,255,.05) !important; color: var(--muted) !important; }
html[data-mode="dark"] .cat-block:hover .cat-head .chev,
html[data-mode="dark"] .cat-block.inline-open .cat-head .chev{ background: var(--o-orange) !important; color: #fff !important; }

/* Theme switcher dark — keep readable */
html[data-mode="dark"] .theme-switcher{ background: rgba(26,31,41,.95) !important; backdrop-filter: blur(8px); border-color: var(--line) !important; }
html[data-mode="dark"] .theme-switcher .ts-label{ color: var(--muted); }

/* Chat-widget bubble in dark */
html[data-mode="dark"] .chat-widget,
html[data-mode="dark"] .cw-toggle{ filter: brightness(1.05); }

/* Footer adjustments */
html[data-mode="dark"] .footer .stores-icons a{ background: #1E4044 !important; color: var(--fg) !important; border-color: var(--line) !important; }
html[data-mode="dark"] .footer .pay-icons .pay{ background: var(--soft) !important; color: var(--fg) !important; }
html[data-mode="dark"] .footer-bottom{ color: var(--muted); border-color: var(--line); }

/* Mobile bottom-fab */
html[data-mode="dark"] .fab-post{ box-shadow: 0 8px 20px -4px rgba(0,0,0,.6); }

/* Hero halo white removal */
html[data-mode="dark"] body > main,
html[data-mode="dark"] main.wrap{ background: transparent !important; }


/* ===========================================================
   THEME SWITCHER — COLLAPSED BY DEFAULT (shared on every page)
   Show only the active dot; expand on hover (desktop) or .open (tap-mobile)
   =========================================================== */
.theme-switcher button:not(.active){ display: none !important; }
.theme-switcher:hover button:not(.active),
.theme-switcher.open button:not(.active){
  display: block !important;
  animation: tsBtnIn .15s ease-out;
}
.theme-switcher::after{
  content: "›"; font-weight: 800; color: var(--muted);
  font-size: 11px; line-height: 1; transform: rotate(-90deg);
  transition: opacity .15s;
  pointer-events: none;
}
.theme-switcher:hover::after,
.theme-switcher.open::after{ display: none; }
@keyframes tsBtnIn{
  from{ opacity: 0; transform: scale(.6); }
  to{ opacity: 1; transform: scale(1); }
}
.theme-switcher .ts-label{ cursor: pointer; user-select: none; }

/* Dark mode collapsed state */
html[data-mode="dark"] .theme-switcher::after{ color: var(--muted); }

/* Two-color dot gradients — global override so every page matches */
.theme-switcher button[data-theme="orange"],
.menu-theme-switcher button[data-theme="orange"]{ background: linear-gradient(135deg, #FCA95F 0%, #FCA95F 50%, #B33A00 50%, #B33A00 100%) !important; }
.theme-switcher button[data-theme="blue"],
.menu-theme-switcher button[data-theme="blue"]{ background: linear-gradient(135deg, #3B82F6 0%, #3B82F6 50%, #1E40AF 50%, #1E40AF 100%) !important; }
.theme-switcher button[data-theme="green"],
.menu-theme-switcher button[data-theme="green"]{ background: linear-gradient(135deg, #22C55E 0%, #22C55E 50%, #166534 50%, #166534 100%) !important; }
.theme-switcher button[data-theme="purple"],
.menu-theme-switcher button[data-theme="purple"]{ background: linear-gradient(135deg, #A78BFA 0%, #A78BFA 50%, #6D28D9 50%, #6D28D9 100%) !important; }
.theme-switcher button[data-theme="magenta"],
.menu-theme-switcher button[data-theme="magenta"]{ background: linear-gradient(135deg, #D946EF 0%, #D946EF 50%, #86198F 50%, #86198F 100%) !important; }
.theme-switcher button[data-theme="teal"],
.menu-theme-switcher button[data-theme="teal"]{ background: linear-gradient(135deg, #14B8A6 0%, #14B8A6 50%, #115E59 50%, #115E59 100%) !important; }
.theme-switcher button[data-theme="slate"],
.menu-theme-switcher button[data-theme="slate"]{ background: linear-gradient(135deg, #94A3B8 0%, #94A3B8 50%, #334155 50%, #334155 100%) !important; }


/* ===========================================================
   DARK MODE — round 2 visual fixes
   Auth pages, notifications, ad detail right panel, gallery buttons
   =========================================================== */

/* ----- AUTH (login / register) ----- */
html[data-mode="dark"] .auth-shell{
  background: #1A383C !important;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.6), 0 4px 12px -4px rgba(0,0,0,.3) !important;
}
html[data-mode="dark"] .auth-form-wrap{ background: transparent !important; }
html[data-mode="dark"] .auth-title{ color: #f1f5f9 !important; }
html[data-mode="dark"] .auth-sub{ color: var(--muted) !important; }
html[data-mode="dark"] .btn-social{
  background: #2E5C64 !important;
  color: #f1f5f9 !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .btn-social:hover{
  background: #232a36 !important;
  border-color: #475569 !important;
}
html[data-mode="dark"] .btn-social span{ color: #f1f5f9 !important; }
html[data-mode="dark"] .divider-or{ color: var(--muted) !important; }
html[data-mode="dark"] .divider-or::before,
html[data-mode="dark"] .divider-or::after{ background: var(--line) !important; }
html[data-mode="dark"] .input-wrap input{
  background: #1E4044 !important;
  border-color: var(--line) !important;
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .input-wrap input::placeholder{ color: var(--muted) !important; }
html[data-mode="dark"] .input-wrap i.ico-l,
html[data-mode="dark"] .input-wrap button.ico-r{ color: var(--muted) !important; }
html[data-mode="dark"] .form-line label{ color: var(--fg) !important; }
html[data-mode="dark"] .form-line a{ color: var(--o-orange) !important; }
html[data-mode="dark"] .auth-foot{ color: var(--muted) !important; }
html[data-mode="dark"] .auth-foot a{ color: var(--o-orange) !important; }
/* Aside is gradient orange — keep as is, no dark transform */

/* ----- NOTIFICATIONS PAGE ----- */
html[data-mode="dark"] .notif-list,
html[data-mode="dark"] .notif-item,
html[data-mode="dark"] .notification-item,
html[data-mode="dark"] .acc-section .notif{
  background: transparent !important;
}
html[data-mode="dark"] .acc-section [class*="notif-"][class*="unread"],
html[data-mode="dark"] .acc-section .unread{
  background: rgba(254, 85, 4, .08) !important;
}
/* Generic unread highlight rows */
html[data-mode="dark"] .acc-section li.unread,
html[data-mode="dark"] .acc-section .row.unread,
html[data-mode="dark"] .acc-section .item.unread{
  background: rgba(254, 85, 4, .08) !important;
  border-left: 3px solid var(--o-orange) !important;
}
/* Notification row generic — they have inline white bg sometimes */
html[data-mode="dark"] .acc-section > div > div > div,
html[data-mode="dark"] .acc-section [style*="background:#fff"],
html[data-mode="dark"] .acc-section [style*="background: #fff"],
html[data-mode="dark"] .acc-section [style*="background:white"]{
  background: transparent !important;
}
html[data-mode="dark"] .acc-section [style*="background:#fff"]:not(.btn):not(button){
  background: rgba(255,255,255,.03) !important;
}
html[data-mode="dark"] .acc-tabs{ border-color: var(--line) !important; }
html[data-mode="dark"] .acc-tabs a{ color: var(--muted) !important; }
html[data-mode="dark"] .acc-tabs a:hover{ color: #f1f5f9 !important; }
html[data-mode="dark"] .acc-tabs a.active{ color: var(--o-orange) !important; }
html[data-mode="dark"] .acc-tabs a .cnt{ background: var(--soft) !important; color: var(--muted) !important; }

/* Side nav active */
html[data-mode="dark"] .acc-nav a{ color: var(--fg) !important; }
html[data-mode="dark"] .acc-nav a:hover{ background: rgba(255,255,255,.04) !important; color: #f1f5f9 !important; }
html[data-mode="dark"] .acc-nav a.active{
  background: rgba(254, 85, 4, .12) !important;
  color: var(--o-orange) !important;
}
html[data-mode="dark"] .acc-user{
  background: rgba(255,255,255,.04) !important;
}
html[data-mode="dark"] .acc-user .name{ color: #f1f5f9 !important; }
html[data-mode="dark"] .acc-user .email{ color: var(--muted) !important; }

/* ----- AD DETAIL PAGE: right contact panel ----- */
html[data-mode="dark"] .seller-card,
html[data-mode="dark"] .seller,
html[data-mode="dark"] aside.side,
html[data-mode="dark"] .ad-layout > aside,
html[data-mode="dark"] .ad-side{
  background: #1A383C !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .seller-stats{
  border-color: var(--line) !important;
  color: var(--muted) !important;
}
html[data-mode="dark"] .seller .name,
html[data-mode="dark"] .seller h3,
html[data-mode="dark"] .seller-card h3,
html[data-mode="dark"] .seller-card .name{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .phone-reveal{
  background: rgba(255,255,255,.04) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .phone-reveal strong{ color: #f1f5f9 !important; }
html[data-mode="dark"] .phone-reveal small{ color: var(--muted) !important; }
html[data-mode="dark"] .btn-chat{
  background: rgba(255,255,255,.08) !important;
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .btn-chat:hover{
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
}
html[data-mode="dark"] .btn-negotiate{
  background: rgba(254, 85, 4, .12) !important;
  color: var(--o-orange) !important;
  border: 1px solid rgba(254, 85, 4, .3) !important;
}
html[data-mode="dark"] .btn-negotiate:hover{
  background: rgba(254, 85, 4, .2) !important;
}
html[data-mode="dark"] .verified,
html[data-mode="dark"] .pl.verified,
html[data-mode="dark"] .seller .verified,
html[data-mode="dark"] .seller-card .verified{
  background: rgba(254, 85, 4, .14) !important;
  color: var(--o-orange) !important;
}
html[data-mode="dark"] .ad-warning,
html[data-mode="dark"] .safety-warning,
html[data-mode="dark"] [class*="warning"]{
  background: rgba(245, 158, 11, .1) !important;
  color: #fde68a !important;
  border-color: rgba(245, 158, 11, .3) !important;
}
/* "Wszystkie ogłoszenia (12)" link below contact box */
html[data-mode="dark"] .ad-side a,
html[data-mode="dark"] .seller-card a{ color: var(--o-orange) !important; }

/* ----- GALLERY HEART/SHARE BUTTONS (top right of main image) ----- */
html[data-mode="dark"] .gallery .heart,
html[data-mode="dark"] .gallery .share,
html[data-mode="dark"] .gallery .show-all,
html[data-mode="dark"] .gallery .arrow{
  background: rgba(20,25,33,.85) !important;
  color: #f1f5f9 !important;
  backdrop-filter: blur(8px);
}
html[data-mode="dark"] .gallery .heart:hover,
html[data-mode="dark"] .gallery .share:hover{
  background: rgba(30,40,55,.95) !important;
}
html[data-mode="dark"] .gallery .heart.active{ color: #f43f5e !important; }
html[data-mode="dark"] .gallery .arrow{
  background: rgba(20,25,33,.7) !important;
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .gallery-open-all{
  background: rgba(20,25,33,.9) !important;
  color: #f1f5f9 !important;
}

/* ----- ACTION BAR (bottom mobile fixed bar on ad page) ----- */
html[data-mode="dark"] .ad-action-bar{
  background: #1A383C !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .ad-action-bar .pm{ color: #f1f5f9 !important; }
html[data-mode="dark"] .ad-action-bar .ab-chat{
  background: rgba(255,255,255,.08) !important; color: #f1f5f9 !important;
}

/* ----- BREADCRUMBS in dark ----- */
html[data-mode="dark"] .crumbs span,
html[data-mode="dark"] .crumbs i{ color: var(--muted) !important; }

/* ----- AVATAR backgrounds — keep colored but soften ----- */
html[data-mode="dark"] .acc-user .avatar{ filter: brightness(.92); }

/* ----- TITLE / HEADINGS in main content ----- */
html[data-mode="dark"] .ad-head h1,
html[data-mode="dark"] .ad-section h2,
html[data-mode="dark"] .acc-section h2{ color: #f1f5f9 !important; }
html[data-mode="dark"] .acc-section h2 i{ color: var(--o-orange) !important; }

/* Tables (e.g. payments-table) inside dark */
html[data-mode="dark"] table th,
html[data-mode="dark"] table td{ border-color: var(--line) !important; color: var(--fg); }
html[data-mode="dark"] table th{ background: rgba(255,255,255,.03) !important; color: #f1f5f9 !important; }
html[data-mode="dark"] table tbody tr:hover{ background: rgba(255,255,255,.04) !important; }

/* Buttons "Oznacz wszystko jako przeczytane" / "Ustawienia" in notifications */
html[data-mode="dark"] .acc-section button.btn-outline,
html[data-mode="dark"] .acc-section .btn-outline-1g{
  background: rgba(255,255,255,.04) !important;
  color: #f1f5f9 !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .acc-section button.btn-outline:hover{
  border-color: var(--o-orange) !important;
  color: var(--o-orange) !important;
}


/* ===========================================================
   DARK MODE — round 3: filters panel & readability fixes
   Catches all .filters (not just .filters-panel) and inputs inside
   =========================================================== */
html[data-mode="dark"] .filters,
html[data-mode="dark"] .filters-mobile,
html[data-mode="dark"] aside.filters-mobile{
  background: #1A383C !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .filters-mobile{ background: transparent !important; }
html[data-mode="dark"] .filters{
  background: #1A383C !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px;
}
html[data-mode="dark"] .filters h6,
html[data-mode="dark"] .filter-group h6,
html[data-mode="dark"] .filters strong{
  color: #f1f5f9 !important;
  opacity: 1 !important;
}
html[data-mode="dark"] .filters .filter-group{
  border-bottom-color: var(--line) !important;
}
html[data-mode="dark"] .filters input[type="text"],
html[data-mode="dark"] .filters input[type="number"],
html[data-mode="dark"] .filters input[type="search"],
html[data-mode="dark"] .filters select,
html[data-mode="dark"] .filters .form-control,
html[data-mode="dark"] .filters .form-select{
  background: #1E4044 !important;
  color: #f1f5f9 !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .filters input::placeholder{ color: var(--muted) !important; }
html[data-mode="dark"] .filters .pill-btn,
html[data-mode="dark"] .filters .range-pill,
html[data-mode="dark"] .filters .room-pill,
html[data-mode="dark"] .filter-pill,
html[data-mode="dark"] .filters [class*="pill"]:not(.dot):not(.pill-radio){
  background: rgba(255,255,255,.05) !important;
  color: var(--fg) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .filters .pill-btn.active,
html[data-mode="dark"] .filters .room-pill.active,
html[data-mode="dark"] .filters [class*="pill"].active{
  background: var(--o-orange) !important;
  color: #fff !important;
  border-color: var(--o-orange) !important;
}
html[data-mode="dark"] .filters .filter-check{
  color: var(--fg) !important;
}
html[data-mode="dark"] .filters .filter-check input{
  accent-color: var(--o-orange);
}
html[data-mode="dark"] .filters .filter-check input + span,
html[data-mode="dark"] .filters label,
html[data-mode="dark"] .filters li,
html[data-mode="dark"] .filters .name,
html[data-mode="dark"] .filters span{
  color: var(--fg) !important;
}
html[data-mode="dark"] .filters .count,
html[data-mode="dark"] .filters .num,
html[data-mode="dark"] .filters small{
  color: var(--muted) !important;
}
html[data-mode="dark"] .filters a{ color: var(--o-orange) !important; }
html[data-mode="dark"] .range-row span{ color: var(--muted) !important; }

/* Filtry header label in mobile drawer */
html[data-mode="dark"] .filters .d-flex strong{ color: #f1f5f9 !important; }
html[data-mode="dark"] .filter-close{ color: var(--fg) !important; }

/* Save-search button on the right */
html[data-mode="dark"] .save-search,
html[data-mode="dark"] .save-search-btn{
  background: rgba(255,255,255,.05) !important;
  color: #f1f5f9 !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .save-search:hover{
  border-color: var(--o-orange) !important;
  color: var(--o-orange) !important;
}

/* Page heading H1 in category */
html[data-mode="dark"] main h1,
html[data-mode="dark"] .layout h1,
html[data-mode="dark"] .layout > main > h1,
html[data-mode="dark"] .layout > main > p{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .layout > main > p{ color: var(--muted) !important; }
html[data-mode="dark"] .layout > main > p strong{ color: #f1f5f9 !important; }

/* Card titles + prices */
html[data-mode="dark"] .card-ad .title,
html[data-mode="dark"] .card-ad .ttl,
html[data-mode="dark"] .card-ad h3{ color: #f1f5f9 !important; }
html[data-mode="dark"] .card-ad .price{ color: #f1f5f9 !important; }
html[data-mode="dark"] .card-ad .price .was{ color: var(--muted) !important; text-decoration: line-through; }
html[data-mode="dark"] .card-ad .meta,
html[data-mode="dark"] .card-ad .loc-line{ color: var(--muted) !important; }
html[data-mode="dark"] .card-ad .meta i{ color: var(--o-orange) !important; }
html[data-mode="dark"] .card-ad .fav{
  background: rgba(20,25,33,.85) !important;
  color: var(--muted) !important;
}
html[data-mode="dark"] .card-ad .fav.active{ color: #f43f5e !important; }
html[data-mode="dark"] .card-ad .gallery-c{
  background: rgba(20,25,33,.85) !important;
  color: #f1f5f9 !important;
}

/* Strona główna / Nieruchomości breadcrumbs */
html[data-mode="dark"] .crumbs{ color: var(--muted) !important; }
html[data-mode="dark"] .crumbs a{ color: var(--o-orange) !important; }
html[data-mode="dark"] .crumbs .sep{ color: var(--muted) !important; }
html[data-mode="dark"] .crumbs strong{ color: #f1f5f9 !important; }

/* Share bar background */
html[data-mode="dark"] [data-share-bar]{
  background: #1A383C !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] [data-share-bar] .share-label{ color: var(--muted) !important; }


/* ===========================================================
   DARK MODE — round 4: AD-orange ad-section content (specs, features, info-items, description)
   =========================================================== */
html[data-mode="dark"] .ad-section{
  border-top-color: var(--line) !important;
}
html[data-mode="dark"] .ad-section h2{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .ad-section h2 i{ color: var(--o-orange) !important; }

/* Spec grid */
html[data-mode="dark"] .spec-grid{
  background: #1A383C !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .spec-row{
  border-bottom-color: var(--line) !important;
}
html[data-mode="dark"] .spec-row .k{ color: var(--muted) !important; }
html[data-mode="dark"] .spec-row .v,
html[data-mode="dark"] body .spec-row .v{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .spec-row i{ color: var(--o-orange) !important; }

/* Feature pills (Balkon, Winda, etc) */
html[data-mode="dark"] .feature-pill,
html[data-mode="dark"] body .feature-pill{
  background: rgba(254, 85, 4, .12) !important;
  color: #FCA95F !important;
  border: 1px solid rgba(254, 85, 4, .25) !important;
}
html[data-mode="dark"] .feature-pill i,
html[data-mode="dark"] body .feature-pill i{ color: var(--o-orange) !important; }

/* Description text */
html[data-mode="dark"] .ad-desc,
html[data-mode="dark"] .ad-desc p,
html[data-mode="dark"] .ad-section p,
html[data-mode="dark"] .ad-section li{
  color: var(--fg) !important;
}
html[data-mode="dark"] .ad-desc strong,
html[data-mode="dark"] .ad-section strong{ color: #f1f5f9 !important; }

/* Read more / show more button */
html[data-mode="dark"] .ad-section .read-more,
html[data-mode="dark"] .ad-section button[class*="more"]{
  color: var(--o-orange) !important;
}

/* Info items (icon + text rows like "Bezpieczna płatność" etc) */
html[data-mode="dark"] .info-item,
html[data-mode="dark"] body .info-item{
  background: rgba(255,255,255,.03) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .info-item .ic,
html[data-mode="dark"] body .info-item .ic{
  background: rgba(254, 85, 4, .14) !important;
  color: var(--o-orange) !important;
}
html[data-mode="dark"] .info-item strong,
html[data-mode="dark"] .info-item .t{ color: #f1f5f9 !important; }
html[data-mode="dark"] .info-item p,
html[data-mode="dark"] .info-item span{ color: var(--fg) !important; }

/* Tip rows (Pamiętaj o bezpieczeństwie etc) */
html[data-mode="dark"] .tip-row{
  background: rgba(245, 158, 11, .08) !important;
  color: var(--fg) !important;
  border-color: rgba(245, 158, 11, .25) !important;
}
html[data-mode="dark"] .tip-row i{ color: #FCD34D !important; }
html[data-mode="dark"] .tip-row strong{ color: #FCD34D !important; }

/* Map block / location section */
html[data-mode="dark"] .map-block,
html[data-mode="dark"] .location-map,
html[data-mode="dark"] .map-placeholder{
  background: #1A383C !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}

/* Similar ads / "Podobne ogłoszenia" track */
html[data-mode="dark"] .row-scroll,
html[data-mode="dark"] .h-scroll{
  background: transparent !important;
}
html[data-mode="dark"] .row-scroll .nav-btn,
html[data-mode="dark"] .h-scroll .nav-btn{
  background: #1A383C !important;
  color: #f1f5f9 !important;
  border-color: var(--line) !important;
}

/* Sec-head + see all */
html[data-mode="dark"] .sec-head h2,
html[data-mode="dark"] .sec-head h3{ color: #f1f5f9 !important; }
html[data-mode="dark"] .sec-head .more,
html[data-mode="dark"] .sec-head a{ color: var(--o-orange) !important; }

/* Report ad / report link */
html[data-mode="dark"] .report-ad,
html[data-mode="dark"] a.report{
  color: var(--muted) !important;
}
html[data-mode="dark"] a.report:hover{ color: #f43f5e !important; }


/* ===========================================================
   DARK MODE — round 5: User menu dropdown
   =========================================================== */
html[data-mode="dark"] .user-menu-dropdown{
  background: #1A383C !important;
  border-color: var(--line) !important;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,.6), 0 4px 12px -4px rgba(0,0,0,.3) !important;
}
html[data-mode="dark"] .user-menu-head{
  background: rgba(255,255,255,.03) !important;
  border-bottom-color: var(--line) !important;
}
html[data-mode="dark"] .user-menu-head .name,
html[data-mode="dark"] .user-menu-head .user-name{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .user-menu-head .id,
html[data-mode="dark"] .user-menu-head .user-id,
html[data-mode="dark"] .user-menu-head small{
  color: var(--muted) !important;
}
html[data-mode="dark"] .user-menu-head .verified{
  color: var(--o-orange) !important;
}
html[data-mode="dark"] .user-menu-section{
  border-bottom-color: var(--line) !important;
}
html[data-mode="dark"] .user-menu-section .label{
  color: var(--muted) !important;
}
html[data-mode="dark"] .user-menu-dropdown a{
  color: var(--fg) !important;
}
html[data-mode="dark"] .user-menu-dropdown a:hover{
  background: rgba(255,255,255,.05) !important;
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .user-menu-dropdown a i{
  color: var(--o-orange) !important;
}
html[data-mode="dark"] .user-menu-dropdown a .cnt{
  background: rgba(255,255,255,.08) !important;
  color: var(--muted) !important;
}
html[data-mode="dark"] .user-menu-dropdown a.logout{
  color: #f87171 !important;
}
html[data-mode="dark"] .user-menu-dropdown a.logout i{
  color: #f87171 !important;
}
html[data-mode="dark"] .user-menu-dropdown a.logout:hover{
  background: rgba(248,113,113,.1) !important;
  color: #fca5a5 !important;
}
/* User menu trigger button itself (the "Moje konto" pill) */
html[data-mode="dark"] .user-menu-trigger{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .user-menu-trigger:hover{
  background: rgba(255,255,255,.05) !important;
}
html[data-mode="dark"] .user-menu-trigger .avatar{
  filter: brightness(.95);
}
html[data-mode="dark"] .user-menu-trigger .label,
html[data-mode="dark"] .user-menu-trigger .name{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .user-menu-trigger .chev{
  color: var(--muted) !important;
}


/* ===========================================================
   DARK MODE — round 6: Location picker dialog
   =========================================================== */
html[data-mode="dark"] .loc-picker{
  background: #1A383C !important;
  border-color: var(--line) !important;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.7) !important;
}
html[data-mode="dark"] .loc-picker-head,
html[data-mode="dark"] .loc-picker-foot{
  background: rgba(255,255,255,.02) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .loc-col-head,
html[data-mode="dark"] .loc-region-title,
html[data-mode="dark"] .loc-popular-label{
  color: var(--muted) !important;
}
html[data-mode="dark"] .loc-col + .loc-col,
html[data-mode="dark"] .loc-col-cities{
  border-left-color: var(--line) !important;
}
html[data-mode="dark"] .loc-list .loc-empty{
  color: var(--muted) !important;
}
html[data-mode="dark"] .loc-picker-search-wrap{
  background: rgba(255,255,255,.05) !important;
}
html[data-mode="dark"] .loc-picker-search-wrap input{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .loc-picker-search-wrap input::placeholder{
  color: var(--muted) !important;
}
html[data-mode="dark"] .loc-close{
  color: var(--fg) !important;
}
html[data-mode="dark"] .loc-close:hover{
  background: rgba(255,255,255,.05) !important;
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .loc-item{
  color: var(--fg) !important;
}
html[data-mode="dark"] .loc-item:hover{
  background: rgba(255,255,255,.05) !important;
  color: #f1f5f9 !important;
}
/* ACTIVE: orange tint background, but text DARK (off-black) for readability */
html[data-mode="dark"] .loc-item.active{
  background: var(--o-orange) !important;
  color: #fff !important;
}
html[data-mode="dark"] .loc-item.active .cnt,
html[data-mode="dark"] .loc-item.active i{
  color: rgba(255,255,255,.85) !important;
}
html[data-mode="dark"] .loc-item .cnt{
  color: var(--muted) !important;
}
html[data-mode="dark"] .loc-item i{
  color: var(--o-orange) !important;
}
/* Popular cities pills */
html[data-mode="dark"] .loc-city-pill{
  background: rgba(255,255,255,.05) !important;
  color: var(--fg) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .loc-city-pill:hover{
  background: var(--o-orange) !important;
  color: #fff !important;
  border-color: var(--o-orange) !important;
}


/* ===========================================================
   DARK MODE — round 7: Messages page (messages-orange)
   =========================================================== */

/* Top tabs (Pulpit / Moje ogłoszenia / Wiadomości / …) */
html[data-mode="dark"] .acc-tabs,
html[data-mode="dark"] .top-tabs{
  background: #1A383C !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .acc-tabs a,
html[data-mode="dark"] .acc-tabs button,
html[data-mode="dark"] .top-tabs a{
  color: var(--muted) !important;
}
html[data-mode="dark"] .acc-tabs a:hover{ color: #f1f5f9 !important; background: rgba(255,255,255,.04) !important; }
html[data-mode="dark"] .acc-tabs a.active{
  background: var(--o-orange) !important;
  color: #fff !important;
}
html[data-mode="dark"] .acc-tabs a.active i{ color: #fff !important; }
html[data-mode="dark"] .acc-tabs a .cnt{
  background: rgba(0,0,0,.2) !important;
  color: rgba(255,255,255,.85) !important;
}

/* Left conv list */
html[data-mode="dark"] .msg-shell,
html[data-mode="dark"] .msg-list,
html[data-mode="dark"] .msg-chat{
  background: #1A383C !important;
}
html[data-mode="dark"] .msg-list{
  border-right-color: var(--line) !important;
}
html[data-mode="dark"] .msg-list-head{
  background: rgba(255,255,255,.02) !important;
  border-bottom-color: var(--line) !important;
}
html[data-mode="dark"] .msg-list-head h1,
html[data-mode="dark"] .msg-list-head h1 span{ color: #f1f5f9 !important; }
html[data-mode="dark"] .msg-list-head h1 .badge-c{
  background: var(--o-orange) !important; color: #fff !important;
}
html[data-mode="dark"] .msg-search{
  background: rgba(255,255,255,.05) !important;
}
html[data-mode="dark"] .msg-search input{
  background: transparent !important;
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .msg-search input::placeholder{
  color: var(--muted) !important;
}
html[data-mode="dark"] .msg-tabs{
  border-bottom-color: var(--line) !important;
}
html[data-mode="dark"] .msg-tabs a,
html[data-mode="dark"] .msg-tabs button{
  color: var(--muted) !important;
}
html[data-mode="dark"] .msg-tabs a:hover,
html[data-mode="dark"] .msg-tabs button:hover{ color: #f1f5f9 !important; }
html[data-mode="dark"] .msg-tabs a.active,
html[data-mode="dark"] .msg-tabs button.active{
  color: var(--o-orange) !important;
  border-color: var(--o-orange) !important;
}

/* Conversation items */
html[data-mode="dark"] .conv-item{
  border-bottom-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .conv-item:hover{
  background: rgba(255,255,255,.04) !important;
}
html[data-mode="dark"] .conv-item.active{
  background: rgba(254, 85, 4, .14) !important;
  border-left: 3px solid var(--o-orange) !important;
}
html[data-mode="dark"] .conv-item.unread{
  background: rgba(254, 85, 4, .06) !important;
}
html[data-mode="dark"] .conv-body .name{ color: #f1f5f9 !important; }
html[data-mode="dark"] .conv-body .time{ color: var(--muted) !important; }
html[data-mode="dark"] .conv-body .ad-ref{ color: var(--o-orange) !important; }
html[data-mode="dark"] .conv-body .preview{ color: var(--muted) !important; }
html[data-mode="dark"] .conv-item.unread .conv-body .preview{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .conv-item.unread .conv-body .name::before{
  background: var(--o-orange) !important;
}
html[data-mode="dark"] .conv-end .unread-c{
  background: var(--o-orange) !important; color: #fff !important;
}
html[data-mode="dark"] .conv-item .avatar .online{
  border-color: #1A383C !important;
  background: #22c55e !important;
}

/* Chat panel */
html[data-mode="dark"] .chat-head{
  background: rgba(255,255,255,.02) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .chat-head .name,
html[data-mode="dark"] .chat-head h2{ color: #f1f5f9 !important; }
html[data-mode="dark"] .chat-head .status,
html[data-mode="dark"] .chat-head .meta{ color: var(--muted) !important; }
html[data-mode="dark"] .chat-head .actions button{
  background: transparent !important; color: var(--fg) !important;
}
html[data-mode="dark"] .chat-head .actions button:hover{
  background: rgba(255,255,255,.05) !important; color: #f1f5f9 !important;
}

/* Safety warning */
html[data-mode="dark"] .safety-banner,
html[data-mode="dark"] [class*="safety"]{
  background: rgba(245, 158, 11, .08) !important;
  color: var(--fg) !important;
  border-color: rgba(245, 158, 11, .25) !important;
}
html[data-mode="dark"] .safety-banner strong,
html[data-mode="dark"] [class*="safety"] strong{ color: #FCD34D !important; }
html[data-mode="dark"] .safety-banner i{ color: #FCD34D !important; }

/* Pinned ad card */
html[data-mode="dark"] .ad-pinned{
  background: rgba(255,255,255,.03) !important;
  border-bottom-color: var(--line) !important;
}
html[data-mode="dark"] .ad-pinned .ttl{ color: #f1f5f9 !important; }
html[data-mode="dark"] .ad-pinned .price{ color: var(--o-orange) !important; }
html[data-mode="dark"] .ad-pinned .view{
  background: var(--o-orange) !important;
  color: #fff !important;
}

/* Chat messages container */
html[data-mode="dark"] .chat-msgs{
  background: #15303A !important;
}
html[data-mode="dark"] .day-sep{ color: var(--muted) !important; }

/* Bubbles */
html[data-mode="dark"] .bubble{
  background: #264E54 !important;
  color: #f1f5f9 !important;
  box-shadow: 0 1px 1px rgba(0,0,0,.15) !important;
}
html[data-mode="dark"] .bubble-group.me .bubble{
  background: var(--o-orange) !important;
  color: #fff !important;
}
html[data-mode="dark"] .bubble .time{
  opacity: .55;
}
html[data-mode="dark"] .bubble-group.me .bubble .check{
  color: rgba(255,255,255,.85) !important;
}

/* Attachments preview */
html[data-mode="dark"] .chat-attach,
html[data-mode="dark"] .msg-attach,
html[data-mode="dark"] .attach-row{
  background: rgba(255,255,255,.04) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .attach-chip{
  background: rgba(255,255,255,.06) !important;
  color: var(--fg) !important;
  border-color: var(--line) !important;
}

/* Quick replies */
html[data-mode="dark"] .quick-replies{
  background: rgba(255,255,255,.02) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .quick-replies button{
  background: rgba(255,255,255,.05) !important;
  color: var(--fg) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .quick-replies button:hover{
  background: rgba(254, 85, 4, .14) !important;
  border-color: var(--o-orange) !important;
  color: var(--o-orange) !important;
}

/* Chat input bar */
html[data-mode="dark"] .chat-input,
html[data-mode="dark"] .msg-compose,
html[data-mode="dark"] .compose-bar{
  background: rgba(255,255,255,.02) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .chat-input input,
html[data-mode="dark"] .chat-input textarea,
html[data-mode="dark"] .msg-compose input,
html[data-mode="dark"] .msg-compose textarea,
html[data-mode="dark"] .compose-input{
  background: rgba(255,255,255,.05) !important;
  color: #f1f5f9 !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .chat-input input::placeholder{
  color: var(--muted) !important;
}
html[data-mode="dark"] .chat-input button.send,
html[data-mode="dark"] .msg-compose button.send{
  background: var(--o-orange) !important;
  color: #fff !important;
}

/* Attachment limit text */
html[data-mode="dark"] .attach-limit,
html[data-mode="dark"] .compose-limit,
html[data-mode="dark"] small{ color: var(--muted) !important; }

/* Bottom "Załączniki" row */
html[data-mode="dark"] [class*="załącz"]{ color: var(--muted) !important; }


/* ===========================================================
   DARK MODE — round 8: Generic "more-btn", store cards, stories, sections
   =========================================================== */

/* "Pokaż więcej" / "Wszystkie sklepy" buttons */
html[data-mode="dark"] .more-btn,
html[data-mode="dark"] body .more-btn,
html[data-mode="dark"] a.more-btn{
  background: rgba(255,255,255,.04) !important;
  border-color: var(--o-orange) !important;
  color: var(--o-orange) !important;
}
html[data-mode="dark"] .more-btn:hover{
  background: var(--o-orange) !important;
  color: #fff !important;
}
html[data-mode="dark"] .more-btn i{ color: inherit !important; }

/* Store cards (Stores grid: AGD Hurt, Vega, Auto Centrum, etc.) */
html[data-mode="dark"] .store-card,
html[data-mode="dark"] body .store-card{
  background: #1A383C !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .store-card:hover{
  border-color: var(--o-orange) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.4) !important;
}
html[data-mode="dark"] .store-card h4,
html[data-mode="dark"] .store-card .name,
html[data-mode="dark"] .store-card .ttl{ color: #f1f5f9 !important; }
html[data-mode="dark"] .store-card .count,
html[data-mode="dark"] .store-card small{ color: var(--muted) !important; }
html[data-mode="dark"] .store-card .ico,
html[data-mode="dark"] .store-card .cat{
  background: rgba(254,85,4,.14) !important;
  color: var(--o-orange) !important;
}

/* Stores intro card */
html[data-mode="dark"] .stores-intro{
  background: rgba(255,255,255,.03) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .stores-intro h3{ color: #f1f5f9 !important; }
html[data-mode="dark"] .stores-intro p{ color: var(--muted) !important; }

/* Stories card */
html[data-mode="dark"] .story,
html[data-mode="dark"] .stories,
html[data-mode="dark"] .story-card{
  background: #1A383C !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .story h3,
html[data-mode="dark"] .story h4,
html[data-mode="dark"] .stories h3{ color: #f1f5f9 !important; }
html[data-mode="dark"] .story p,
html[data-mode="dark"] .story .lede{ color: var(--fg) !important; }
html[data-mode="dark"] .stories .more,
html[data-mode="dark"] .story .more{ color: var(--o-orange) !important; }

/* SEO / news sections */
html[data-mode="dark"] .seo{
  background: rgba(255,255,255,.03) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .seo h2,
html[data-mode="dark"] .seo h3{ color: #f1f5f9 !important; }
html[data-mode="dark"] .seo p{ color: var(--fg) !important; }
html[data-mode="dark"] .seo a{ color: var(--o-orange) !important; }

/* Sections with default white bg */
html[data-mode="dark"] section.sec,
html[data-mode="dark"] .sec{
  background: transparent !important;
}
html[data-mode="dark"] .sec-head{
  color: var(--fg);
}
html[data-mode="dark"] .sec-head h2,
html[data-mode="dark"] .sec-head h3{ color: #f1f5f9 !important; }
html[data-mode="dark"] .sec-head .more{ color: var(--o-orange) !important; }

/* Promo cards (blue boxes) */
html[data-mode="dark"] .promo-card{
  background: rgba(255,255,255,.04) !important;
  border-color: var(--line) !important;
  color: var(--fg);
}
html[data-mode="dark"] .promo-card h4,
html[data-mode="dark"] .promo-card strong{ color: #f1f5f9 !important; }
html[data-mode="dark"] .promo-card p{ color: var(--muted) !important; }

/* Pager / pagination */
html[data-mode="dark"] .pager a,
html[data-mode="dark"] .pagination a,
html[data-mode="dark"] .pager span:not(.current){
  background: rgba(255,255,255,.04) !important;
  color: var(--fg) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .pager a:hover{
  border-color: var(--o-orange) !important;
  color: var(--o-orange) !important;
}
html[data-mode="dark"] .pager .current{
  background: var(--o-orange) !important;
  color: #fff !important;
  border-color: var(--o-orange) !important;
}

/* H-scroll cards (track of similar items / categories at bottom) */
html[data-mode="dark"] .h-scroll-card,
html[data-mode="dark"] .track .card-ad,
html[data-mode="dark"] .track-card{
  background: #1A383C !important;
  border-color: var(--line) !important;
}

/* Welcome strip top of dashboard */
html[data-mode="dark"] .welcome-strip{
  background: linear-gradient(135deg, rgba(254,85,4,.08), rgba(254,85,4,.02)) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .welcome-strip h2{ color: #f1f5f9 !important; }
html[data-mode="dark"] .welcome-strip .perk{ color: var(--fg) !important; }
html[data-mode="dark"] .welcome-strip .perk i{ color: var(--o-orange) !important; }

/* Quick actions / tile grid */
html[data-mode="dark"] .quick-tiles a,
html[data-mode="dark"] .quick-action,
html[data-mode="dark"] .tile-link{
  background: #1A383C !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .quick-tiles a:hover{
  background: rgba(254,85,4,.14) !important;
  border-color: var(--o-orange) !important;
  color: var(--o-orange) !important;
}

/* Generic .card / .block fallback */
html[data-mode="dark"] .card:not(.card-ad){
  background: #1A383C !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}


/* ===========================================================
   DARK MODE — round 9: Footer details (socials, lang flags, payments)
   =========================================================== */

/* Footer base + columns */
html[data-mode="dark"] .footer{
  background: #15303A !important;
  color: var(--fg) !important;
  border-top-color: var(--line) !important;
}
html[data-mode="dark"] .footer h6,
html[data-mode="dark"] .footer .footer-row h6{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .footer a,
html[data-mode="dark"] .footer .footer-row a{
  color: var(--fg) !important;
}
html[data-mode="dark"] .footer a:hover{
  color: var(--o-orange) !important;
}
html[data-mode="dark"] .footer p,
html[data-mode="dark"] .footer .footer-row p{
  color: var(--muted) !important;
}

/* Logo in footer */
html[data-mode="dark"] .footer .logo-mark .b{ color: var(--o-orange) !important; }
html[data-mode="dark"] .footer .logo-mark .d,
html[data-mode="dark"] .footer .logo-mark .t{ color: #FF8A45 !important; }
html[data-mode="dark"] .footer .logo-tag{ color: var(--muted) !important; }

/* "Dodaj ogłoszenie" CTA inside footer */
html[data-mode="dark"] .footer .post-cta .btn-post-ad{
  background: var(--o-orange) !important;
  color: #fff !important;
}
html[data-mode="dark"] .footer .post-cta .btn-post-ad:hover{
  background: var(--o-orange-dark) !important;
}

/* Stores icons (Google Play / App Store) */
html[data-mode="dark"] .footer .stores-icons a,
html[data-mode="dark"] .stores-icons a{
  background: rgba(255,255,255,.04) !important;
  color: var(--fg) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .footer .stores-icons a:hover,
html[data-mode="dark"] .stores-icons a:hover{
  background: rgba(255,255,255,.08) !important;
  border-color: var(--o-orange) !important;
}
html[data-mode="dark"] .stores-icons a small{ color: var(--muted) !important; }
html[data-mode="dark"] .stores-icons a strong{ color: #f1f5f9 !important; }

/* Payment icons row */
html[data-mode="dark"] .pay-icons .pay,
html[data-mode="dark"] .footer .pay-icons .pay{
  background: rgba(255,255,255,.06) !important;
  color: #f1f5f9 !important;
  border-color: var(--line) !important;
}

/* Footer-bottom row */
html[data-mode="dark"] .footer-bottom{
  border-top-color: var(--line) !important;
  color: var(--muted) !important;
}

/* Footer social icons */
html[data-mode="dark"] .footer-socials a{
  background: rgba(255,255,255,.06) !important;
  color: #f1f5f9 !important;
  border: 1px solid var(--line) !important;
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s !important;
}
html[data-mode="dark"] .footer-socials a:hover{
  background: var(--o-orange) !important;
  color: #fff !important;
  border-color: var(--o-orange) !important;
  transform: translateY(-2px);
}
html[data-mode="dark"] .footer-socials a i{ color: inherit !important; }

/* Language flag - SVG flags get filtered too low — restore visibility */
html[data-mode="dark"] .lang .flag,
html[data-mode="dark"] .footer-bottom .lang .flag,
html[data-mode="dark"] .lang-flat .flag,
html[data-mode="dark"] .country-chip .flag{
  filter: none !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 1px var(--line) !important;
  background: linear-gradient(to bottom, #fff 50%, #dc143c 50%) !important;
}
/* Override the img:not(.no-dim) brightness filter for flags */
html[data-mode="dark"] .lang img,
html[data-mode="dark"] .lang-flat img,
html[data-mode="dark"] .flag,
html[data-mode="dark"] [class*="flag"]{
  filter: none !important;
}
html[data-mode="dark"] .lang-flat,
html[data-mode="dark"] .footer-bottom .lang-flat{
  background: rgba(255,255,255,.04) !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .lang-flat span,
html[data-mode="dark"] .footer-bottom .lang span{ color: var(--fg) !important; }

/* Footer divider lines */
html[data-mode="dark"] .footer hr,
html[data-mode="dark"] .footer .divider{
  border-color: var(--line) !important;
  background: var(--line) !important;
}

/* "© 2026 1g.pl ..." copyright text */
html[data-mode="dark"] .footer-bottom > div{ color: var(--muted) !important; }
html[data-mode="dark"] .footer-bottom strong{ color: #f1f5f9 !important; }


/* ===========================================================
   DARK MODE — round 10: Account dashboard ("Moje konto")
   =========================================================== */
html[data-mode="dark"] .acc-layout{ background: transparent !important; }
html[data-mode="dark"] .acc-side{
  background: #1A383C !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .acc-user{
  background: rgba(255,255,255,.04) !important;
}
html[data-mode="dark"] .acc-user .name{ color: #f1f5f9 !important; }
html[data-mode="dark"] .acc-user .email{ color: var(--muted) !important; }
html[data-mode="dark"] .acc-user .verified{
  color: var(--o-orange) !important;
}
html[data-mode="dark"] .acc-balance{
  background: linear-gradient(135deg, var(--o-orange-dark, #B33A00), var(--o-orange, #FE5504)) !important;
  color: #fff !important;
}
html[data-mode="dark"] .acc-balance .lbl{ color: rgba(255,255,255,.85) !important; }
html[data-mode="dark"] .acc-balance .val{ color: #fff !important; }
html[data-mode="dark"] .acc-balance .topup{
  background: #fff !important;
  color: var(--o-orange-dark, #B33A00) !important;
  font-weight: 800 !important;
  padding: 5px 12px !important;
}
html[data-mode="dark"] .acc-balance .topup:hover{
  background: #f8fafc !important;
  color: var(--o-orange) !important;
}
html[data-mode="dark"] .acc-balance .topup i{ color: inherit !important; }

/* Stat cards */
html[data-mode="dark"] .stat-card{
  background: #1A383C !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .stat-card .num{ color: #f1f5f9 !important; }
html[data-mode="dark"] .stat-card .lbl{ color: var(--muted) !important; }
html[data-mode="dark"] .stat-card .ic{
  background: rgba(254,85,4,.14) !important;
  color: var(--o-orange) !important;
}
html[data-mode="dark"] .stat-card .delta{ color: var(--muted) !important; }
html[data-mode="dark"] .stat-card .delta.up{ color: #34D399 !important; }
html[data-mode="dark"] .stat-card .delta.down{ color: #F87171 !important; }

/* Acc-section (Powiadomienia, Statystyki, Płatności etc.) */
html[data-mode="dark"] .acc-section{
  background: #1A383C !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .acc-section h2,
html[data-mode="dark"] .acc-section h3{ color: #f1f5f9 !important; }
html[data-mode="dark"] .acc-section .sub,
html[data-mode="dark"] .acc-section p{ color: var(--muted) !important; }

/* Side toggle (mobile) */
html[data-mode="dark"] .acc-side-toggle{ color: #f1f5f9 !important; }
html[data-mode="dark"] .acc-side-toggle:hover{ background: rgba(255,255,255,.05) !important; }

/* Side nav links: rewrite for visibility */
html[data-mode="dark"] .acc-nav a{
  color: var(--fg) !important;
  background: transparent !important;
}
html[data-mode="dark"] .acc-nav a:hover{
  background: rgba(255,255,255,.04) !important;
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .acc-nav a.active{
  background: rgba(254,85,4,.14) !important;
  color: var(--o-orange) !important;
  border-left-color: var(--o-orange) !important;
}
html[data-mode="dark"] .acc-nav a i{ color: var(--muted) !important; }
html[data-mode="dark"] .acc-nav a.active i{ color: var(--o-orange) !important; }
html[data-mode="dark"] .acc-nav a .count,
html[data-mode="dark"] .acc-nav a .cnt{
  background: rgba(255,255,255,.08) !important;
  color: var(--muted) !important;
}
html[data-mode="dark"] .acc-nav a.active .count,
html[data-mode="dark"] .acc-nav a.active .cnt{
  background: var(--o-orange) !important;
  color: #fff !important;
}
html[data-mode="dark"] .acc-nav a.logout{
  color: #F87171 !important;
}
html[data-mode="dark"] .acc-nav a.logout i{ color: #F87171 !important; }

/* Offer rows (My ads list) */
html[data-mode="dark"] .offer-row{
  background: #1A383C !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .offer-row .title{ color: #f1f5f9 !important; }
html[data-mode="dark"] .offer-row .price{ color: var(--o-orange) !important; }
html[data-mode="dark"] .offer-row .meta{ color: var(--muted) !important; }
html[data-mode="dark"] .offer-row .status.active{ color: #34D399 !important; }
html[data-mode="dark"] .offer-row .status.expired{ color: #F87171 !important; }
html[data-mode="dark"] .offer-row .status.paused{ color: #FBBF24 !important; }
html[data-mode="dark"] .offer-row .status.draft{ color: var(--muted) !important; }
html[data-mode="dark"] .offer-actions .ba{
  background: rgba(255,255,255,.06) !important;
  color: var(--fg) !important;
  border: 1px solid var(--line) !important;
}
html[data-mode="dark"] .offer-actions .ba.ba-primary{
  background: var(--o-orange) !important; color: #fff !important; border-color: var(--o-orange) !important;
}
html[data-mode="dark"] .offer-actions .ba.ba-promote{
  background: linear-gradient(135deg, #FBBF24, #F59E0B) !important; color: #1a1a1a !important; border: 0 !important;
}
html[data-mode="dark"] .offer-actions .ba.ba-renew{
  background: #34D399 !important; color: #fff !important; border: 0 !important;
}
html[data-mode="dark"] .offer-actions .ba:hover{
  background: rgba(255,255,255,.1) !important;
}

/* Quick actions row */
html[data-mode="dark"] .quick-row{
  background: transparent !important;
}
html[data-mode="dark"] .quick-row a{
  background: rgba(255,255,255,.04) !important;
  color: var(--fg) !important;
  border: 1px solid var(--line) !important;
}
html[data-mode="dark"] .quick-row a:hover{
  background: rgba(255,255,255,.08) !important;
}
html[data-mode="dark"] .quick-row a.primary{
  background: var(--o-orange) !important; color: #fff !important; border-color: var(--o-orange) !important;
}
html[data-mode="dark"] .quick-row a i{ color: var(--o-orange) !important; }
html[data-mode="dark"] .quick-row a.primary i{ color: #fff !important; }

/* Tab badges */
html[data-mode="dark"] .acc-tabs a{ color: var(--muted) !important; }
html[data-mode="dark"] .acc-tabs a:hover{ color: #f1f5f9 !important; }
html[data-mode="dark"] .acc-tabs a.active{
  color: var(--o-orange) !important;
  border-bottom-color: var(--o-orange) !important;
}
html[data-mode="dark"] .acc-tabs a .cnt{
  background: rgba(255,255,255,.08) !important;
  color: var(--muted) !important;
}
html[data-mode="dark"] .acc-tabs a.active .cnt{
  background: var(--o-orange) !important;
  color: #fff !important;
}


/* ===========================================================
   DARK MODE — round 11: acc-quick-nav + saved-searches + misc account sections
   =========================================================== */

/* Horizontal nav on messages/notifications: Pulpit / Moje ogłoszenia / Wiadomości / … */
html[data-mode="dark"] .acc-quick-nav{
  background: #1A383C !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .acc-quick-nav a{
  color: var(--fg) !important;
  background: transparent !important;
  border-color: transparent !important;
}
html[data-mode="dark"] .acc-quick-nav a:hover{
  background: rgba(255,255,255,.04) !important;
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .acc-quick-nav a.active{
  background: rgba(254,85,4,.14) !important;
  color: var(--o-orange) !important;
  border-color: var(--o-orange) !important;
}
html[data-mode="dark"] .acc-quick-nav a i{
  color: var(--muted) !important;
}
html[data-mode="dark"] .acc-quick-nav a.active i{
  color: var(--o-orange) !important;
}
html[data-mode="dark"] .acc-quick-nav a .cnt,
html[data-mode="dark"] .acc-quick-nav a .count{
  background: rgba(255,255,255,.08) !important;
  color: var(--muted) !important;
}
html[data-mode="dark"] .acc-quick-nav a.active .cnt,
html[data-mode="dark"] .acc-quick-nav a.active .count{
  background: var(--o-orange) !important;
  color: #fff !important;
}

/* Saved searches section */
html[data-mode="dark"] .saved-searches{
  background: #1A383C !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .saved-searches h2,
html[data-mode="dark"] .saved-searches h3{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .saved-searches h2 i{ color: var(--o-orange) !important; }
html[data-mode="dark"] .saved-searches p,
html[data-mode="dark"] .saved-searches .sub{
  color: var(--muted) !important;
}
html[data-mode="dark"] .saved-search-row,
html[data-mode="dark"] .saved-search-card,
html[data-mode="dark"] .ss-row{
  background: rgba(255,255,255,.04) !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .saved-search-row:hover{
  background: rgba(254,85,4,.08) !important;
  border-color: var(--o-orange) !important;
}
html[data-mode="dark"] .saved-search-row .title,
html[data-mode="dark"] .saved-search-row .q{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .saved-search-row .meta,
html[data-mode="dark"] .saved-search-row small,
html[data-mode="dark"] .saved-search-row .count{
  color: var(--muted) !important;
}
html[data-mode="dark"] .saved-search-row .new-badge,
html[data-mode="dark"] .saved-search-row .badge{
  background: var(--o-orange) !important;
  color: #fff !important;
}

/* Generic light-bg containers that haven't been caught yet */
html[data-mode="dark"] section.acc-section,
html[data-mode="dark"] section[class*="-section"]:not(.dark-immune){
  background: #1A383C !important;
}

/* Tip cards / hints */
html[data-mode="dark"] .tip-card,
html[data-mode="dark"] .hint-card{
  background: rgba(254,85,4,.08) !important;
  border: 1px solid rgba(254,85,4,.25) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .tip-card strong,
html[data-mode="dark"] .tip-card h4{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .tip-card i{ color: var(--o-orange) !important; }

/* Empty-state / placeholder */
html[data-mode="dark"] .empty-state,
html[data-mode="dark"] .placeholder-box{
  background: rgba(255,255,255,.02) !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
}
html[data-mode="dark"] .empty-state h3,
html[data-mode="dark"] .empty-state h4{ color: #f1f5f9 !important; }

/* Action buttons inside saved-searches */
html[data-mode="dark"] .saved-search-row button,
html[data-mode="dark"] .ss-actions button{
  background: transparent !important;
  color: var(--muted) !important;
  border: 0 !important;
}
html[data-mode="dark"] .saved-search-row button:hover{
  color: var(--o-orange) !important;
  background: rgba(254,85,4,.08) !important;
}


/* ===========================================================
   DARK MODE — round 12: notifications inline-style overrides
   The notification rows use inline backgrounds that don't theme.
   =========================================================== */

/* Notification row "unread" backgrounds (light pastel green via oklch) */
html[data-mode="dark"] [style*="oklch(0.98 0.03 158)"]{
  background: rgba(254,85,4,.08) !important;
}
html[data-mode="dark"] [style*="oklch(.98 .03 158)"]{
  background: rgba(254,85,4,.08) !important;
}
/* "Read" notifications (white bg) */
html[data-mode="dark"] [style*="background:#fff"][style*="grid-template-columns"]{
  background: transparent !important;
}
/* Avatars/icons with light backgrounds (green-50, yellow tint, red tint, blue tint) */
html[data-mode="dark"] [style*="background:var(--green-50)"]{
  background: rgba(52,211,153,.14) !important;
  color: #6EE7B7 !important;
}
html[data-mode="dark"] [style*="background:oklch(0.96 0.06 80)"],
html[data-mode="dark"] [style*="background:oklch(.96 .06 80)"]{
  background: rgba(251,191,36,.14) !important;
  color: #FBBF24 !important;
}
html[data-mode="dark"] [style*="background:oklch(0.96 0.04 25)"],
html[data-mode="dark"] [style*="background:oklch(.96 .04 25)"]{
  background: rgba(248,113,113,.14) !important;
  color: #F87171 !important;
}
html[data-mode="dark"] [style*="background:oklch(0.95 0.05 245)"],
html[data-mode="dark"] [style*="background:oklch(.95 .05 245)"]{
  background: rgba(96,165,250,.14) !important;
  color: #60A5FA !important;
}

/* Inline tabs styled directly (acc-tabs with inline colors) */
html[data-mode="dark"] .acc-tabs a[style*="color:var(--green-700)"]{
  color: var(--o-orange) !important;
  border-bottom-color: var(--o-orange) !important;
}
html[data-mode="dark"] .acc-tabs a[style*="border-bottom:2px solid var(--green)"]{
  border-bottom-color: var(--o-orange) !important;
}

/* Strong colored prices in row body (oklch overrides etc) */
html[data-mode="dark"] [style*="color:var(--green)"]{ color: var(--o-orange) !important; }
html[data-mode="dark"] [style*="color: var(--green)"]{ color: var(--o-orange) !important; }

/* Notification row hover */
html[data-mode="dark"] .acc-section a[href][style*="grid-template-columns:40px"]{
  border-bottom-color: var(--line) !important;
}
html[data-mode="dark"] .acc-section a[href][style*="grid-template-columns:40px"]:hover{
  background: rgba(255,255,255,.04) !important;
}

/* Unread indicator dot — keep visible */
html[data-mode="dark"] [style*="background:var(--green)"][style*="border-radius:50%"]{
  background: var(--o-orange) !important;
}


/* ===========================================================
   DARK MODE — round 13: Payments page (wallet, stats, transactions)
   =========================================================== */

/* Wallet hero card — switch from green gradient to orange gradient */
html[data-mode="dark"] .wallet-hero{
  background: linear-gradient(135deg, var(--o-orange-dark, #B33A00), var(--o-orange, #FE5504) 70%, var(--o-orange-mid, #FCA95F)) !important;
  color: #fff !important;
}
html[data-mode="dark"] .wallet-hero .lbl{ color: rgba(255,255,255,.85) !important; opacity: 1 !important; }
html[data-mode="dark"] .wallet-hero .val{ color: #fff !important; }
html[data-mode="dark"] .wallet-hero .sub{ color: rgba(255,255,255,.85) !important; opacity: 1 !important; }

/* CTA buttons inside wallet-hero */
html[data-mode="dark"] .wallet-hero .actions button{
  background: #fff !important;
  color: var(--o-orange-dark, #B33A00) !important;
  font-weight: 800 !important;
}
html[data-mode="dark"] .wallet-hero .actions button:hover{
  background: #f8fafc !important;
}
html[data-mode="dark"] .wallet-hero .actions button.ghost{
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.4) !important;
}
html[data-mode="dark"] .wallet-hero .actions button.ghost:hover{
  background: rgba(255,255,255,.28) !important;
}
html[data-mode="dark"] .wallet-hero .actions button i{ color: inherit !important; }

/* Stat cards for payments (.stat-card-pay) */
html[data-mode="dark"] .stat-card-pay,
html[data-mode="dark"] .stat-cards .stat-card-pay{
  background: #1A383C !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .stat-card-pay .lbl,
html[data-mode="dark"] .stat-card-pay small{
  color: var(--muted) !important;
}
html[data-mode="dark"] .stat-card-pay .val{ color: #f1f5f9 !important; }
html[data-mode="dark"] .stat-card-pay .delta{ color: var(--muted) !important; }
html[data-mode="dark"] .stat-card-pay .delta.up{ color: #34D399 !important; }
html[data-mode="dark"] .stat-card-pay .delta.down{ color: #F87171 !important; }
html[data-mode="dark"] .stat-card-pay .ic,
html[data-mode="dark"] .stat-card-pay i{
  color: var(--o-orange) !important;
}

/* Payments table */
html[data-mode="dark"] .pay-table{
  background: transparent !important;
}
html[data-mode="dark"] .pay-table thead th{
  background: rgba(255,255,255,.03) !important;
  color: var(--muted) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .pay-table tbody td{
  background: transparent !important;
  color: var(--fg) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .pay-table tbody tr:hover td{
  background: rgba(255,255,255,.04) !important;
}
html[data-mode="dark"] .pay-table .amt{
  color: #f1f5f9 !important;
  font-weight: 700;
}
html[data-mode="dark"] .pay-table .amt.in{
  color: #34D399 !important;
}
html[data-mode="dark"] .pay-table .stat-tag.paid{
  background: rgba(52,211,153,.14) !important;
  color: #34D399 !important;
}
html[data-mode="dark"] .pay-table .stat-tag.pending{
  background: rgba(251,191,36,.14) !important;
  color: #FBBF24 !important;
}
html[data-mode="dark"] .pay-table .stat-tag.failed{
  background: rgba(248,113,113,.14) !important;
  color: #F87171 !important;
}
html[data-mode="dark"] .pay-table td.actions a,
html[data-mode="dark"] .pay-table td.actions button{
  background: rgba(255,255,255,.05) !important;
  color: var(--fg) !important;
  border: 1px solid var(--line) !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
}
html[data-mode="dark"] .pay-table td.actions a:hover{
  background: rgba(254,85,4,.08) !important;
  color: var(--o-orange) !important;
  border-color: var(--o-orange) !important;
}
html[data-mode="dark"] .pay-table td.actions a[style*="color:var(--red)"]{
  background: rgba(248,113,113,.14) !important;
  color: #F87171 !important;
  border-color: rgba(248,113,113,.3) !important;
}
html[data-mode="dark"] .pay-table td.actions a[style*="color:var(--green-700)"]{
  background: rgba(52,211,153,.14) !important;
  color: #34D399 !important;
  border-color: rgba(52,211,153,.3) !important;
}

/* Pricing plans cards */
html[data-mode="dark"] .plan{
  background: #1A383C !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .plan.featured{
  border-color: var(--o-orange) !important;
  box-shadow: 0 0 0 1px var(--o-orange), 0 8px 20px -8px rgba(254,85,4,.3) !important;
}
html[data-mode="dark"] .plan h3,
html[data-mode="dark"] .plan .name{ color: #f1f5f9 !important; }
html[data-mode="dark"] .plan .price{ color: #f1f5f9 !important; }
html[data-mode="dark"] .plan .price .per{ color: var(--muted) !important; }
html[data-mode="dark"] .plan ul li{ color: var(--fg) !important; }
html[data-mode="dark"] .plan ul li i.bi-check{ color: #34D399 !important; }
html[data-mode="dark"] .plan ul li i.bi-x{ color: var(--muted) !important; }
html[data-mode="dark"] .plan .badge-top{
  background: var(--o-orange) !important; color: #fff !important;
}
html[data-mode="dark"] .plan .btn-buy{
  background: var(--o-orange) !important; color: #fff !important;
}
html[data-mode="dark"] .plan .btn-buy:hover{
  background: var(--o-orange-dark) !important;
}


/* ===========================================================
   DARK MODE — round 14: Store profile page (user-head, user-stats, store tabs)
   =========================================================== */
html[data-mode="dark"] .user-head{
  background: #1A383C !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .user-cover{
  background: linear-gradient(135deg, var(--o-orange-dark, #B33A00), var(--o-orange, #FE5504) 60%, var(--o-orange-mid, #FCA95F)) !important;
  filter: brightness(.9) !important;
}
html[data-mode="dark"] .user-avatar{
  border: 4px solid #1A383C !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.5) !important;
}
html[data-mode="dark"] .user-info h1,
html[data-mode="dark"] .user-info h2,
html[data-mode="dark"] .user-head h1{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .user-meta-row,
html[data-mode="dark"] .user-meta-row span:not(.verified):not(.pl){
  color: var(--muted) !important;
}
html[data-mode="dark"] .user-meta-row .pl,
html[data-mode="dark"] .user-meta-row .verified{
  background: rgba(254,85,4,.14) !important;
  color: var(--o-orange) !important;
}
html[data-mode="dark"] .user-meta-row .pl i,
html[data-mode="dark"] .user-meta-row .verified i{
  color: var(--o-orange) !important;
}

/* User stats row */
html[data-mode="dark"] .user-stats-row{
  background: var(--line) !important;
  border-top-color: var(--line) !important;
}
html[data-mode="dark"] .user-stat{
  background: #1A383C !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .user-stat .num{ color: #f1f5f9 !important; }
html[data-mode="dark"] .user-stat .lbl{ color: var(--muted) !important; }

/* User-actions (Obserwuj / Wiadomość / Udostępnij) */
html[data-mode="dark"] .user-actions button,
html[data-mode="dark"] .user-actions a{
  background: rgba(255,255,255,.05) !important;
  color: var(--fg) !important;
  border: 1px solid var(--line) !important;
}
html[data-mode="dark"] .user-actions .btn-primary,
html[data-mode="dark"] .user-actions .btn-follow.active{
  background: var(--o-orange) !important;
  color: #fff !important;
  border-color: var(--o-orange) !important;
}
html[data-mode="dark"] .user-actions button:hover{
  background: rgba(255,255,255,.08) !important;
  border-color: var(--o-orange) !important;
  color: var(--o-orange) !important;
}

/* Store / blog tabs */
html[data-mode="dark"] .store-tabs,
html[data-mode="dark"] .blog-tabs,
html[data-mode="dark"] .fav-tabs{
  border-bottom-color: var(--line) !important;
}
html[data-mode="dark"] .store-tabs a,
html[data-mode="dark"] .blog-tabs a,
html[data-mode="dark"] .fav-tabs a{
  color: var(--muted) !important;
}
html[data-mode="dark"] .store-tabs a:hover,
html[data-mode="dark"] .blog-tabs a:hover,
html[data-mode="dark"] .fav-tabs a:hover{
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .store-tabs a.active,
html[data-mode="dark"] .blog-tabs a.active,
html[data-mode="dark"] .fav-tabs a.active{
  color: var(--o-orange) !important;
  border-bottom-color: var(--o-orange) !important;
}

/* Share-bar containers (white inline bg) */
html[data-mode="dark"] [data-share-bar][style*="background:#fff"],
html[data-mode="dark"] [data-share-bar][style*="background: #fff"]{
  background: #1A383C !important;
  border-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] [data-share-bar] *{ color: inherit !important; }
html[data-mode="dark"] [data-share-bar] .share-label,
html[data-mode="dark"] [data-share-bar] strong{ color: #f1f5f9 !important; }


/* ===========================================================
   DARK MODE — round 15: Floating chat widget (.chat-widget-panel)
   =========================================================== */
html[data-mode="dark"] .chat-widget-panel{
  background: #1A383C !important;
  border-color: var(--line) !important;
  box-shadow: 0 20px 50px -8px rgba(0,0,0,.6) !important;
}
html[data-mode="dark"] .cw-head{
  background: linear-gradient(135deg, var(--o-orange-dark), var(--o-orange)) !important;
  color: #fff !important;
}
html[data-mode="dark"] .cw-head h3{ color: #fff !important; }
html[data-mode="dark"] .cw-head .sub{ color: rgba(255,255,255,.85) !important; }
html[data-mode="dark"] .cw-head button{ color: #fff !important; background: rgba(255,255,255,.1) !important; }
html[data-mode="dark"] .cw-head button:hover{ background: rgba(255,255,255,.2) !important; }

/* Search */
html[data-mode="dark"] .cw-search{
  background: rgba(255,255,255,.02) !important;
  border-bottom-color: var(--line) !important;
}
html[data-mode="dark"] .cw-search input{
  background: rgba(255,255,255,.05) !important;
  color: #f1f5f9 !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .cw-search input::placeholder{ color: var(--muted) !important; }

/* Conversations list */
html[data-mode="dark"] .cw-list{ background: #1A383C !important; }
html[data-mode="dark"] .cw-conv{
  border-bottom-color: var(--line) !important;
  color: var(--fg) !important;
}
html[data-mode="dark"] .cw-conv:hover{
  background: rgba(255,255,255,.04) !important;
}
html[data-mode="dark"] .cw-conv.unread{
  background: rgba(254,85,4,.08) !important;
}
html[data-mode="dark"] .cw-conv .nm{ color: #f1f5f9 !important; }
html[data-mode="dark"] .cw-conv .pv{ color: var(--muted) !important; }
html[data-mode="dark"] .cw-conv.unread .pv{ color: #f1f5f9 !important; }
html[data-mode="dark"] .cw-conv .end{ color: var(--muted) !important; }
html[data-mode="dark"] .cw-conv .end .un{
  background: var(--o-orange) !important;
  color: #fff !important;
}

/* Chat mode (open conversation) */
html[data-mode="dark"] .cw-chat{ background: #15303A !important; }
html[data-mode="dark"] .cw-chat-msgs{ background: transparent !important; }
html[data-mode="dark"] .cw-bubble{
  background: #264E54 !important;
  color: #f1f5f9 !important;
  box-shadow: 0 1px 1px rgba(0,0,0,.2) !important;
}
html[data-mode="dark"] .cw-bubble.me{
  background: var(--o-orange) !important;
  color: #fff !important;
}
html[data-mode="dark"] .cw-bubble .t{
  opacity: .55;
}

/* Input area */
html[data-mode="dark"] .cw-input{
  background: rgba(255,255,255,.02) !important;
  border-top-color: var(--line) !important;
}
html[data-mode="dark"] .cw-input textarea{
  background: rgba(255,255,255,.05) !important;
  color: #f1f5f9 !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .cw-input textarea::placeholder{ color: var(--muted) !important; }
html[data-mode="dark"] .cw-input button.attach{
  color: var(--muted) !important;
}
html[data-mode="dark"] .cw-input button.attach:hover{
  background: rgba(255,255,255,.05) !important;
  color: #f1f5f9 !important;
}
html[data-mode="dark"] .cw-input button.send{
  background: var(--o-orange) !important;
  color: #fff !important;
}
html[data-mode="dark"] .cw-input button.send:hover{
  background: var(--o-orange-dark) !important;
}

/* Pinned ad inside chat */
html[data-mode="dark"] .cw-ad-pinned{
  background: rgba(255,255,255,.03) !important;
  border-bottom-color: var(--line) !important;
}
html[data-mode="dark"] .cw-ad-pinned .ttl,
html[data-mode="dark"] .cw-ad-pinned strong{ color: #f1f5f9 !important; }
html[data-mode="dark"] .cw-ad-pinned .price{ color: var(--o-orange) !important; }

/* Chat toggle bubble (the floating button on the right) — keep orange */
html[data-mode="dark"] .cw-toggle{
  background: var(--o-orange) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px -4px rgba(0,0,0,.5), 0 0 0 1px var(--line) !important;
}
html[data-mode="dark"] .cw-toggle .cnt{
  background: #fff !important;
  color: var(--o-orange) !important;
}

/* ===== A11Y: PageSpeed Accessibility 100 ===== */
/* Touch targets — min 48x48 dla mobile (WCAG 2.5.5) */
@media (max-width: 768px){
  footer.footer a,
  .footer-row a,
  .footer-bottom a,
  .footer-socials a{
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .footer-socials a{ min-width: 44px; justify-content: center; padding: 0; }
}
/* SEO popular searches — link rozróżnialny nie tylko kolorem (WCAG 1.4.1) */
.seo p a,
.seo .seo-link{
  color: var(--green-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.seo p a:hover,
.seo .seo-link:hover{
  color: var(--green-600);
  text-decoration-thickness: 2px;
}
/* Focus ring widoczny — keyboard navigation */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--green-700);
  outline-offset: 2px;
}

/* ===========================================================
   DARK MODE — smooth transitions + final polish (2026-05-17)
   Applies cross-fade when toggling so the screen does not flash.
   =========================================================== */
html, body { transition: background-color .25s ease, color .25s ease; }
.topbar, .footer, .cats, .card-ad, .filters, .toolbar, .side-card,
.search-bar, .loc-picker, .search-suggest, .pl-info-popup,
.cats-mega.open, .menu-overlay .menu-inner, aside,
.acc-section, .acc-side, .blog-card, .stat-card, .ad-section,
.theme-switcher, .mode-pill, .plan, .promo-banner, .pay-table, table,
input, textarea, select, .form-control, .form-select, .chip {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
/* When user prefers system dark and has NOT made a choice → flip CSS variables
   (dark-mode.js sets data-mode on first paint so this is a fallback). */
@media (prefers-color-scheme: dark){
  html:not([data-mode="light"]):not([data-mode="dark"]){
    color-scheme: dark;
  }
}
/* Missing in original dark block: make sure --o-orange-soft is visible on dark bg */
html[data-mode="dark"]{
  --o-orange-soft: rgba(254, 85, 4, 0.16);
  --bg: #1E4044;
}
/* Logos / svgs / inline icons that come from external CDN: do not dim them as text */
html[data-mode="dark"] .bi { color: inherit; }
/* Default body bg variable in case some block reads var(--bg) */
html[data-mode="dark"] body{ background: var(--bg) !important; }
/* Modals, popovers and lightboxes (Bootstrap, custom) */
html[data-mode="dark"] .modal-content,
html[data-mode="dark"] .dropdown-menu,
html[data-mode="dark"] .popover,
html[data-mode="dark"] .offcanvas{
  background-color: #1A383C !important;
  color: var(--fg) !important;
  border-color: var(--line) !important;
}
html[data-mode="dark"] .dropdown-item{ color: var(--fg) !important; }
html[data-mode="dark"] .dropdown-item:hover,
html[data-mode="dark"] .dropdown-item:focus{
  background-color: #2E5C64 !important; color: var(--ink) !important;
}
/* Cards that rely on Bootstrap default white background */
html[data-mode="dark"] .card,
html[data-mode="dark"] .list-group-item{
  background-color: #1A383C !important; color: var(--fg) !important; border-color: var(--line) !important;
}

/* ===== LOADING SKELETONS (global pulse) ===== */
.skeleton{
  background: linear-gradient(90deg, #e8eaed 0%, #f4f5f7 50%, #e8eaed 100%);
  background-size: 200% 100%;
  animation: skel 1.2s infinite;
  border-radius: 4px;
}
.skeleton-card{ aspect-ratio: 4/3; width: 100%; }
.skeleton-line{ height: 14px; margin: 6px 0; }
.skeleton-line.short{ width: 60%; }
.skeleton-circle{ border-radius: 50%; aspect-ratio: 1/1; }
@keyframes skel { 0%{ background-position: 200% 0; } 100%{ background-position: -200% 0; } }
html[data-mode="dark"] .skeleton{
  background: linear-gradient(90deg, #1f3c40 0%, #2a4d52 50%, #1f3c40 100%);
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: reduce){
  .skeleton{ animation: none; background: #eef0f2; }
  html[data-mode="dark"] .skeleton{ background: #1f3c40; }
}
/* ===== QUICK FILTER CHIPS (category top) ===== */
.quick-chips{ display:flex; gap:8px; flex-wrap:wrap; }
.quick-chip{
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.quick-chip i{ font-size: 13px; color: var(--muted); }
.quick-chip .cnt{
  display: inline-block; font-size: 11px; font-weight: 800;
  color: var(--muted); background: var(--soft);
  padding: 1px 7px; border-radius: 999px; margin-left: 2px;
}
.quick-chip:hover{
  border-color: var(--o-orange, #FE5504);
  color: var(--o-orange, #FE5504);
}
.quick-chip:hover i{ color: var(--o-orange, #FE5504); }
.quick-chip.active{
  background: var(--o-orange, #FE5504);
  color: #fff;
  border-color: var(--o-orange, #FE5504);
  box-shadow: 0 4px 12px -4px color-mix(in oklch, var(--o-orange, #FE5504) 50%, transparent);
}
.quick-chip.active i{ color: #fff; }
.quick-chip.active .cnt{
  background: rgba(255,255,255,.22); color: #fff;
}
.quick-chip-clear{ border-style: dashed; }
html[data-mode="dark"] .quick-chip{ background: #1A383C; color: var(--fg); border-color: var(--line); }
html[data-mode="dark"] .quick-chip .cnt{ background: #2E5C64; color: var(--fg); }
@media (max-width: 575.98px){
  .quick-chip{ padding: 6px 11px; font-size: 12px; }
  .quick-chip .cnt{ font-size: 10px; padding: 0 6px; }
}
/* Inline pulse dot for buttons / inline waits (replaces bi-hourglass) */
.pulse-dot{
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; vertical-align: middle; margin-right: 6px;
  animation: pulseDot 1s infinite ease-in-out;
}
@keyframes pulseDot{ 0%,100%{ opacity: 1; transform: scale(1); } 50%{ opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce){ .pulse-dot{ animation: none; opacity: .7; } }
