/* QCars app.css — doar ce nu intră în utilitarele Tailwind */

:root {
  --sab: env(safe-area-inset-bottom, 0px);
}

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }

/* spațiu pentru bara de tab-uri (mobil) și dock (desktop) */
body.has-tabbar main { padding-bottom: calc(76px + var(--sab)); }
@media (min-width: 768px) { body.has-tabbar main { padding-bottom: 24px; } }
@media (min-width: 768px) { body.has-tabbar footer { padding-bottom: 72px; } }

.tabbar { padding-bottom: calc(14px + var(--sab)); }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 68px; padding: 4px 0 2px; color: #6B7280; font-size: 11px; font-weight: 600;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.tab-ico { width: 44px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.tab.is-active { color: #15171C; font-weight: 700; }
.tab.is-active .tab-ico { background: #FDF1C2; }

.dock-item {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px;
  color: #fff; font-size: 13px; font-weight: 600; background: none; border: 0; font-family: inherit; cursor: pointer;
  transition: background .15s;
}
.dock-item:hover { background: rgba(255,255,255,.1); }
.dock-item.is-active { background: #F2B705; color: #15171C; font-weight: 700; }

.drawer-link {
  display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; border-radius: 12px;
  font-size: 15px; font-weight: 600; color: #15171C;
}
.drawer-link:hover { background: #F3F4F6; }
.drawer-ico { width: 34px; height: 34px; border-radius: 10px; background: #F3F4F6; display: flex; align-items: center; justify-content: center; color: #15171C; flex-shrink: 0; }
.drawer-chev { margin-left: auto; color: #9CA3AF; font-size: 20px; line-height: 1; }

.social { width: 40px; height: 40px; border-radius: 12px; border: 1px solid #E5E7EB; background: #fff; color: #15171C; display: flex; align-items: center; justify-content: center; }
.social:hover { background: #F3F4F6; }

/* drawer animații */
#drawer .drawer-bg { opacity: 0; transition: opacity .2s; }
#drawer .drawer-panel { transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 768px) { #drawer .drawer-panel { transform: translateX(100%); } }
#drawer.is-open .drawer-bg { opacity: 1; }
#drawer.is-open .drawer-panel { transform: none; }
body.drawer-open { overflow: hidden; }

/* scroll orizontal fără bară */
.hscroll { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid #E5E7EB; font-size: 13px; font-weight: 600; white-space: nowrap; color: #15171C; }
.chip.is-on { background: #15171C; color: #fff; border-color: #15171C; }
.chip-soft { background: #FDF1C2; border-color: #FDF1C2; }

/* card mașină */
.car-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #E5E7EB; border-radius: 18px; overflow: hidden; position: relative; transition: transform .15s, box-shadow .15s; }
.car-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.car-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #E9EBEF; }
.fav-btn { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; color: #15171C; }
.fav-btn.is-on { color: #B91C1C; }
.fav-btn.is-on svg { fill: currentColor; }

/* formulare */
.field { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #E5E7EB; background: #fff; font: inherit; font-size: 15px; color: #15171C; outline: none; }
.field:focus { border-color: #15171C; box-shadow: 0 0 0 3px rgba(21,23,28,.08); }
textarea.field { height: auto; padding: 12px 14px; }
.lbl { display: block; font-size: 12px; font-weight: 600; color: #4B5563; margin-bottom: 6px; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2315171C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; font-family: inherit; transition: filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(.96); }
.btn-dark { background: #15171C; color: #fff; }
.btn-accent { background: #F2B705; color: #15171C; }
.btn-wa { background: #25D366; color: #fff; }
.btn-ghost { background: #fff; color: #15171C; border: 1px solid #E5E7EB; }
.btn-sm { height: 40px; padding: 0 14px; font-size: 13px; border-radius: 11px; }

/* carduri generice */
.card { background: #fff; border: 1px solid #E5E7EB; border-radius: 20px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6B7280; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 7px; font-size: 11px; font-weight: 700; }

/* accordion (details) */
details.acc { border-bottom: 1px solid #E5E7EB; }
details.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; font-weight: 700; font-size: 15px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary .acc-ico { width: 28px; height: 28px; border-radius: 8px; background: #F3F4F6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .2s; }
details.acc[open] summary .acc-ico { transform: rotate(45deg); background: #FDF1C2; }
details.acc .acc-body { padding: 0 0 16px; font-size: 14px; line-height: 1.6; color: #4B5563; }

/* range */
input[type=range] { width: 100%; accent-color: #15171C; }

/* sheet filtre (mobil) */
#filterSheet { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 767px) {
  #filterSheet { transform: translateY(100%); }
  #filterSheet.is-open { transform: none; }
}

/* galerie */
.thumb { width: 72px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; border: 2px solid transparent; cursor: pointer; background: #E9EBEF; }
.thumb.is-active { border-color: #15171C; }

/* steps */
.step-num { width: 40px; height: 40px; border-radius: 12px; background: #15171C; color: #F2B705; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* TOC activ */
.toc-link { display: block; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #6B7280; }
.toc-link.is-active, .toc-link:hover { background: #FDF1C2; color: #15171C; }

/* legal prose */
.prose-legal h2 { font-size: 18px; font-weight: 800; margin: 0 0 8px; scroll-margin-top: 80px; }
.prose-legal p, .prose-legal li { font-size: 14px; line-height: 1.65; color: #4B5563; }
.prose-legal ul { padding-left: 18px; margin: 8px 0 0; list-style: disc; }
.prose-legal section + section { margin-top: 28px; }

/* skeleton */
.skeleton { background: linear-gradient(90deg,#E9EBEF 25%,#F3F4F6 50%,#E9EBEF 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* standalone (PWA instalată) */
@media (display-mode: standalone) {
  header { padding-top: env(safe-area-inset-top); }
}

/* ===== runda 2 ===== */

/* picker */
.pk-btn { width: 100%; height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid #E5E7EB; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; font: inherit; cursor: pointer; text-align: left; }
.pk-btn:hover { border-color: #C9CDD3; }
.pk-btn.is-set { border-color: #15171C; }
.pk-btn .pk-l { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #6B7280; display: block; }
.pk-btn .pk-v { font-size: 14px; font-weight: 700; color: #15171C; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 500; }
.pk-item:hover { background: #F3F4F6; }
.pk-item.is-on { background: #FDF1C2; font-weight: 700; }
.pk-box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #D1D5DB; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #15171C; flex-shrink: 0; background: #fff; }
.pk-item.is-on .pk-box { background: #15171C; border-color: #15171C; color: #F2B705; }
#pickerSheet .pk-panel { transform: translateY(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 768px) { #pickerSheet .pk-panel { transform: translate(-50%,-50%) scale(.96); opacity: 0; transition: transform .18s, opacity .18s; } }
#pickerSheet.is-open .pk-panel { transform: none; opacity: 1; }
@media (min-width: 768px) { #pickerSheet.is-open .pk-panel { transform: translate(-50%,-50%) scale(1); } }

/* dual range */
.dr { position: relative; height: 28px; }
.dr-track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: #E5E7EB; }
.dr-fill { position: absolute; top: 0; height: 100%; border-radius: 2px; background: #15171C; }
.dr input[type=range] { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 28px; margin: 0; background: none; appearance: none; -webkit-appearance: none; pointer-events: none; }
.dr input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #15171C; box-shadow: 0 1px 4px rgba(0,0,0,.15); pointer-events: auto; cursor: grab; }
.dr input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #15171C; pointer-events: auto; cursor: grab; }
.dr input[type=range]::-webkit-slider-runnable-track { background: transparent; }
.dr input[type=range]::-moz-range-track { background: transparent; }

/* tile caroserie */
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: 14px; border: 1px solid #E5E7EB; background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; text-align: center; color: #15171C; }
.tile svg { color: #6B7280; }
.tile.is-on { background: #15171C; color: #fff; border-color: #15171C; }
.tile.is-on svg { color: #F2B705; }

/* segmented */
.seg { display: flex; background: #F3F4F6; border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { flex: 1; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; cursor: pointer; color: #4B5563; }
.seg label.is-on { background: #fff; color: #15171C; box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 700; }

/* switch */
.sw { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 14px; font-weight: 500; cursor: pointer; }
.sw-knob { width: 44px; height: 26px; border-radius: 999px; background: #D1D5DB; position: relative; flex-shrink: 0; transition: background .15s; }
.sw-knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sw input:checked + .sw-knob { background: #15171C; }
.sw input:checked + .sw-knob::after { transform: translateX(18px); }

/* slider hero */
[data-slider] [data-slide] { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; pointer-events: none; }
[data-slider] { display: flex; }
[data-slider] [data-slide].is-active { opacity: 1; pointer-events: auto; position: relative; flex: 1 1 auto; width: 100%; min-height: 100%; }
@media (min-width: 768px) { [data-slider] [data-slide] > div:first-child { align-self: stretch; min-height: 100%; } }
.sl-arrow { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); color: #15171C; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; }
.sl-arrow.is-off { opacity: .35; pointer-events: none; }

/* listă vs grilă */
.is-list { grid-template-columns: 1fr !important; }
.is-list .car-card { flex-direction: row; }
.is-list .car-card > a:first-child { width: 42%; max-width: 320px; flex-shrink: 0; }
.is-list .car-card img { height: 100%; aspect-ratio: auto; }
.is-list .car-card .cc-body { flex: 1; justify-content: center; }
.is-list .cc-extra { display: flex !important; }
.cc-extra { display: none; }
@media (max-width: 767px) { .is-list .car-card > a:first-child { width: 44%; } }

/* skeleton card */
.car-card.is-sk img { visibility: hidden; }

/* calculator */
.calc-step { display: flex; gap: 12px; }
.calc-num { width: 32px; height: 32px; border-radius: 10px; background: #15171C; color: #F2B705; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid #E5E7EB; background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; min-height: 52px; }
.opt svg { color: #6B7280; flex-shrink: 0; }
.opt.is-on { border-color: #15171C; background: #15171C; color: #fff; }
.opt.is-on svg { color: #F2B705; }
.res-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.15); font-size: 13px; }
.res-row:last-child { border: 0; }
.res-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; display: flex; }
.res-bar > span { height: 100%; }

/* social banners */
.soc-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; color: #fff; }
.soc-ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (min-width: 768px) {
  .md-hscroll { display: flex !important; grid-template-columns: none !important; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 4px; }
  .md-hscroll::-webkit-scrollbar { display: none; }
  .md-hscroll > * { flex: 0 0 calc(25% - 12px) !important; scroll-snap-align: start; }
}

/* ===== hero cinematic + social feed ===== */
.playlist { }
.pl-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.08); color: #fff; text-align: left; cursor: pointer; width: 100%; font-family: inherit; transition: background .15s, transform .15s; }
.pl-item:hover { background: rgba(255,255,255,.14); }
.pl-item.is-on { background: #fff; color: #15171C; transform: translateX(-6px); }
.pl-item img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.pl-item span { display: flex; flex-direction: column; min-width: 0; }
.pl-item b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-item i { font-style: normal; font-size: 11px; opacity: .65; }
.pl-item.is-on i { opacity: .6; }

.soc-pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 700; transition: background .15s, border-color .15s; }
.soc-pill svg { color: var(--c); }
.soc-pill small { font-weight: 500; opacity: .6; font-size: 12px; }
.soc-pill:hover { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: color-mix(in srgb, var(--c) 50%, transparent); }

.mosaic figure { position: absolute; margin: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.45); border: 3px solid #fff; background: #2A2D34; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic figcaption { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #15171C; background: rgba(255,255,255,.92); padding: 5px 9px; border-radius: 8px; }
.mosaic .dot { width: 7px; height: 7px; border-radius: 50%; background: #15803D; }
.mosaic .m-a { left: 6%; top: 10%; width: 56%; aspect-ratio: 4/3; transform: rotate(-4deg); z-index: 2; }
.mosaic .m-b { right: 5%; top: 4%; width: 42%; aspect-ratio: 1; transform: rotate(5deg); z-index: 1; }
.mosaic .m-c { right: 10%; bottom: 8%; width: 50%; aspect-ratio: 16/10; transform: rotate(-2deg); z-index: 3; }

/* scrollbar discret */
.nice-scroll { scrollbar-width: thin; scrollbar-color: #D1D5DB transparent; }
.nice-scroll::-webkit-scrollbar { width: 6px; }
.nice-scroll::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
.tile { font-size: 11px; padding: 10px 4px; }
.pk-btn { height: 56px; }

/* mozaic compact (coloana socială) */
.mosaic-sm .m-a { left: 4%; top: 2%; width: 58%; }
.mosaic-sm .m-b { right: 4%; top: -4%; width: 40%; }
.mosaic-sm .m-c { right: 8%; bottom: 6%; width: 56%; }
.mosaic-sm figcaption { font-size: 10px; padding: 4px 7px; }

/* dropdown custom */
.dd { position: relative; display: inline-block; vertical-align: middle; }
.dd-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; inset: 0; }
.dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
.dd-btn:focus-visible { border-color: #15171C; box-shadow: 0 0 0 3px rgba(21,23,28,.08); outline: none; }
.dd-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-label.is-placeholder { color: #6B7280; font-weight: 500; }
.dd-chev { flex-shrink: 0; color: #6B7280; transition: transform .15s; }
.dd.is-open .dd-chev { transform: rotate(180deg); }
.dd-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; max-height: 280px; overflow-y: auto; min-width: 180px; scrollbar-width: thin; }
.dd-menu.dd-up { top: auto; bottom: calc(100% + 6px); }
.dd-item { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: #15171C; cursor: pointer; }
.dd-item:hover { background: #F3F4F6; }
.dd-item.is-on { background: #FDF1C2; font-weight: 700; }
.dd-item.is-off { opacity: .4; pointer-events: none; }

/* listă pe mobil: rând compact */
@media (max-width: 767px) {
  .is-list .car-card { flex-direction: row; align-items: stretch; border-radius: 14px; min-height: 132px; }
  .is-list .car-card > a:first-child { display: block; position: relative; width: 128px; flex-shrink: 0; align-self: stretch; }
  .is-list .car-card img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .is-list .car-card .badge:first-of-type { top: 8px; left: 8px; height: 20px; font-size: 10px; padding: 0 6px; }
  .is-list .fav-btn { top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; background: #F3F4F6; }
  .is-list .cc-body { padding: 10px 36px 10px 12px !important; gap: 3px !important; justify-content: center; min-width: 0; }
  .is-list .cc-body > a { font-size: 13px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .is-list .cc-extra { gap: 4px !important; margin-top: 2px !important; }
  .is-list .cc-extra .badge { height: 20px; font-size: 10px; padding: 0 6px; }
  .is-list .cc-extra .badge:nth-child(n+3) { display: none; }
  .is-list .cc-body > div:not(.cc-extra) { margin-top: 2px !important; }
  .is-list .cc-body > div:not(.cc-extra) span:first-child { font-size: 16px !important; }
  .is-list a.cc-extra.btn { display: none !important; }
}

/* ---------- Consimțământ cookie (Legea 195/2024) ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; pointer-events: none; }
body.drawer-open .consent-box { display: none; } /* nu acoperi sheet-urile (filtre, pickere, comandă) */
.consent-box { pointer-events: auto; margin: 0 12px calc(76px + var(--sab, 0px)); background: #fff; border: 1px solid #E5E7EB; border-radius: 20px; padding: 16px; box-shadow: 0 18px 50px rgba(21,23,28,.18); display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .consent-box { margin: 0 24px 24px auto; max-width: 560px; } }
.consent-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 480px) { .consent-actions { grid-template-columns: repeat(3, 1fr); } }
.consent-actions .btn { height: 44px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.consent-sheet.hidden { display: none; }
.consent-sheet { pointer-events: auto; position: fixed; inset: 0; z-index: 90; background: rgba(21,23,28,.55); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 768px) { .consent-sheet { align-items: center; } }
.consent-sheet-inner { background: #fff; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; border-radius: 24px 24px 0 0; padding: 20px; }
@media (min-width: 768px) { .consent-sheet-inner { border-radius: 24px; } }
.consent-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #E5E7EB; border-radius: 14px; cursor: pointer; }
.toggle { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: #D1D5DB; position: relative; flex-shrink: 0; cursor: pointer; transition: background .15s; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle:checked { background: #15171C; }
.toggle:checked::after { transform: translateX(18px); }
.toggle:disabled { opacity: .55; cursor: not-allowed; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #4B5563; cursor: pointer; }
.consent-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: #15171C; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 8px 0 12px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid #E5E7EB; }
.legal-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6B7280; background: #F6F7F9; }
.legal-table td { color: #4B5563; }

/* ---------- Mod portret pe telefoane: în landscape pe ecran mic se afișează un ecran de blocare ---------- */
#rotateLock { display: none; }
@media screen and (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  #rotateLock { display: flex; position: fixed; inset: 0; z-index: 1000; background: #15171C; color: #fff; align-items: center; justify-content: center; text-align: center; padding: 24px; }
  #rotateLock .rl-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; font-weight: 700; font-size: 16px; max-width: 320px; }
  #rotateLock svg { animation: rl-spin 1.6s ease-in-out infinite; }
  body { overflow: hidden; }
}
@keyframes rl-spin { 0%, 20% { transform: rotate(0); } 50%, 70% { transform: rotate(90deg); } 100% { transform: rotate(0); } }

/* ---------- Picker: acordeon per marcă + stări ---------- */
.pk-group { border: 1px solid #E5E7EB; border-radius: 14px; margin: 6px 4px; overflow: hidden; }
.pk-group-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; background: #fff; }
.pk-group-btn:hover { background: #F9FAFB; }
.pk-group .pk-chev { transition: transform .18s; color: #6B7280; }
.pk-group.is-open .pk-chev { transform: rotate(180deg); }
.pk-group-body { display: none; border-top: 1px solid #E5E7EB; background: #FCFCFD; padding: 4px; }
.pk-group.is-open .pk-group-body { display: block; }
.spinner { width: 22px; height: 22px; border: 2.5px solid #E5E7EB; border-top-color: #15171C; border-radius: 50%; animation: qc-spin .7s linear infinite; }
@keyframes qc-spin { to { transform: rotate(360deg); } }
/* contoare în filtre */
.tile-n, .chip-n, .seg-n, .sw-n { font-size: 10px; color: #9CA3AF; font-weight: 600; margin-left: 2px; }
.tile .tile-n { display: block; margin: 0; }
.is-zero { opacity: .45; }
/* grid în curs de actualizare */
[data-grid].is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* ---------- Filtre desktop: panou lipicios cu derulare internă ---------- */
@media (min-width: 768px) {
  #filterSheet { max-height: calc(100vh - 92px); overflow-y: auto; }
  #filterSheet > form > .sticky { position: sticky; top: 0; }
  #filterSheet > form > div:last-child { position: sticky; bottom: 0; }
}

/* ---------- Mobil: buton plutitor Filtre ---------- */
#filterFab { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .2s, transform .2s; }
#filterFab.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
body.drawer-open #filterFab { opacity: 0; pointer-events: none; }
