/* Motion, image handling and homepage editorial carousel */
:root{--motion-fast:160ms;--motion:240ms;--lift-shadow:0 14px 34px rgba(45,18,27,.10);--lift-shadow-soft:0 9px 24px rgba(45,18,27,.075)}

/* Uploaded imagery: keep source ratio, crop only to the designed frame, always centered. */
.listing-image img,.photo-thumb img,.seller-avatar img,.account-avatar-inner img,.profile-preview-avatar img,.nav-avatar img,.mobile-avatar img,
.news-image img,.article-hero,.comment-avatar img,.image-preview img,.home-news-image img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;image-orientation:from-image;
}
.article-hero{height:clamp(240px,52vw,520px)!important;max-height:520px!important;background:#f4eef0}
.news-image{aspect-ratio:16/10}
.image-preview{position:relative}

/* Homepage latest-news carousel */
.home-news{padding-bottom:64px}
.home-news-head{align-items:center;margin-bottom:18px}
.home-news-head h2{font-size:32px;letter-spacing:-.045em;margin:6px 0 0}
.home-news-head-actions{display:flex;align-items:center;gap:12px}
.home-news-arrows{display:flex;gap:7px}
.home-news-arrows button{width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--wine);font-size:18px;font-weight:900;cursor:pointer}
.home-news-arrows button:disabled{opacity:.35;cursor:default;transform:none!important;box-shadow:none!important}
.home-news-all{text-decoration:none;font-size:12px}
.home-news-carousel{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-inline:contain;scrollbar-width:none;padding:5px 2px 17px;touch-action:pan-x;-webkit-overflow-scrolling:touch}
.home-news-carousel::-webkit-scrollbar{display:none}
.home-news-card{flex:0 0 calc((100% - 28px)/3);min-width:0;scroll-snap-align:start;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;color:var(--ink);text-decoration:none;box-shadow:0 5px 18px rgba(45,18,27,.035);transform:translateZ(0)}
.home-news-image{aspect-ratio:16/9;background:linear-gradient(135deg,#f4ecef,#e9dde1);overflow:hidden;display:grid;place-items:center;color:var(--wine);font-size:24px;font-weight:950}
.home-news-body{padding:16px}
.home-news-meta{font-size:9px;line-height:1.3;text-transform:uppercase;letter-spacing:.08em;color:var(--wine);font-weight:900}
.home-news-card h3{margin:8px 0 7px;font-size:19px;line-height:1.12;letter-spacing:-.035em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-news-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-news-empty{flex:1 0 100%;padding:35px 18px;border:1px dashed #d8cfd2;border-radius:16px;text-align:center;color:var(--muted)}
.home-news-skeleton{flex:0 0 calc((100% - 28px)/3);height:250px;border-radius:18px;background:linear-gradient(90deg,#f0ecee 25%,#faf8f9 50%,#f0ecee 75%);background-size:200% 100%;animation:homeNewsShimmer 1.3s linear infinite}
@keyframes homeNewsShimmer{to{background-position:-200% 0}}

/* Consistent motion language across the whole product. */
button,a,.category,.listing-card,.trust-card,.cta,.hero-panel,.searchbox,.seller-box,.account-row,.conversation-card,.news-card,.section-card,.admin-row,.stat,.post-item,.home-news-card{
  transition:transform var(--motion-fast) ease,box-shadow var(--motion) ease,border-color var(--motion-fast) ease,background-color var(--motion-fast) ease,color var(--motion-fast) ease,opacity var(--motion-fast) ease;
}
button:active,.primary:active,.ghost:active,.white-button:active,.engage-btn:active{transform:scale(.975)}
input,textarea,select{transition:border-color var(--motion-fast) ease,box-shadow var(--motion-fast) ease,background-color var(--motion-fast) ease}
input:focus,textarea:focus,select:focus{box-shadow:0 0 0 3px rgba(111,21,48,.09)}

@media(hover:hover){
  .primary:hover,.white-button:hover,.home-news-arrows button:hover,.ghost:hover,.engage-btn:hover,.sidebar button:hover,.form-actions button:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(45,18,27,.12)}
  .category:hover,.listing-card:hover,.trust-card:hover,.news-card:hover,.home-news-card:hover,.section-card:hover,.admin-row:hover,.stat:hover,.post-item:hover,.seller-box:hover,.conversation-card:hover{transform:translateY(-3px);box-shadow:var(--lift-shadow-soft)}
  .cta:hover,.hero-panel:hover{transform:translateY(-2px);box-shadow:var(--lift-shadow)}
  .home-news-card:hover .home-news-image img,.listing-card:hover .listing-image img,.news-card:hover .news-image img{transform:scale(1.025)}
  .home-news-image img,.listing-image img,.news-image img{transition:transform 420ms cubic-bezier(.2,.75,.2,1)}
}

@media(max-width:850px){
  .home-news-card,.home-news-skeleton{flex-basis:calc((100% - 14px)/2)}
}
@media(max-width:650px){
  .home-news{padding:6px 17px 46px}
  .home-news-head{align-items:flex-end;gap:12px}
  .home-news-head h2{font-size:27px}
  .home-news-head-actions{gap:7px}
  .home-news-all{display:none}
  .home-news-arrows button{width:34px;height:34px}
  .home-news-carousel{margin-right:-17px;padding-right:17px;gap:10px}
  .home-news-card,.home-news-skeleton{flex-basis:84%;max-width:360px}
  .home-news-body{padding:14px}
  .home-news-card h3{font-size:18px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}


/* v5.6 — Global paper texture and translucent surfaces */
:root{
  --site-paper:url('/background-site.jpg');
  --surface-glass:rgba(255,255,255,.91);
  --surface-glass-strong:rgba(255,255,255,.965);
  --surface-glass-soft:rgba(255,255,255,.82);
  --surface-paper-border:rgba(111,21,48,.105);
  --paper-shadow:0 10px 30px rgba(45,18,27,.055);
}

/* Same background on Marketplace, Noutăți/article and Admin. */
html{
  background:#f7f4f3;
}
body{
  min-height:100vh;
  background-color:#f7f4f3!important;
  background-image:
    linear-gradient(rgba(255,255,255,.66),rgba(255,255,255,.66)),
    var(--site-paper)!important;
  background-repeat:repeat!important;
  background-position:top center!important;
  background-size:auto,720px auto!important;
}

/* Keep page-level wrappers transparent so the texture is actually visible. */
main,.hero,.wrap,.categories,.market,.trust,.home-news,.news-hero,.news-controls,.news-wrap,.article-wrap,.admin-shell,.content,.panel{
  background-color:transparent;
}

/* High-legibility chrome over the paper background. */
.site-header,.news-header,.admin-header,.sidebar,.mobile-nav{
  background:var(--surface-glass-strong)!important;
  -webkit-backdrop-filter:blur(12px) saturate(1.03);
  backdrop-filter:blur(12px) saturate(1.03);
}

/* Shared footer keeps the same brand layout but now belongs visually to the page. */
footer.global-footer{
  background:var(--surface-glass-strong)!important;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}

/* Content surfaces: translucent enough to reveal the texture without hurting readability. */
.searchbox,
.category,
.listing-card,
.trust-card:not(.dark),
.home-news-card,
.news-card,
.news-search,
.news-controls select,
.section-card,
.admin-row,
.stat,
.post-item,
.seller-box,
.conversation-card,
.account-row,
.comment-form,
.comment-item,
.reply-form,
.empty,
.modal{
  background-color:var(--surface-glass)!important;
  border-color:var(--surface-paper-border)!important;
  box-shadow:var(--paper-shadow);
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
}

/* Inputs stay cleaner/whiter than their parent card for strong form affordance. */
input,textarea,select,
.ghost,.engage-btn,.duration,.reply-cancel,
.home-news-arrows button{
  background-color:rgba(255,255,255,.94);
}

/* Preserve intentionally dark / brand-color surfaces. */
.hero-panel,.trust-card.dark,.cta,.primary,.searchbox button{
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}

/* Dialog itself is transparent; modal provides the readable surface. */
dialog{
  background:transparent!important;
}

/* Universal uploaded-media treatment:
   crop only inside designed frames, keep original aspect ratio, always center. */
.listing-image img,
.photo-thumb img,
.detail-photo img,
.seller-avatar img,
.account-avatar-inner img,
.profile-preview-avatar img,
.nav-avatar img,
.mobile-avatar img,
.news-image img,
.article-hero,
.comment-avatar img,
.image-preview img,
.home-news-image img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center center!important;
  image-orientation:from-image;
}

/* Hero/article photos get a subtle frame against the paper background. */
.article-hero,.photo-thumb,.image-preview{
  box-shadow:0 8px 26px rgba(45,18,27,.07);
}

/* Desktop can safely keep the paper visually anchored.
   iOS/mobile deliberately uses normal scrolling to avoid Safari repaint glitches. */
@media(min-width:651px){
  body{background-attachment:fixed!important}
}
@media(max-width:650px){
  body{
    background-attachment:scroll!important;
    background-size:auto,560px auto!important;
  }
  .site-header,.news-header,.admin-header,.mobile-nav{
    background:rgba(255,255,255,.975)!important;
  }
}


/* v5.7 — Product-safe listing images + adaptive in-page gallery */

/* Listing cards: show the whole product instead of cropping portrait photos.
   A blurred copy fills the frame so portrait and landscape cards remain visually consistent. */
.listing-image.has-photo{
  isolation:isolate;
  background:#f3eef0!important;
}
.listing-image.has-photo::before{
  content:"";
  position:absolute;
  inset:-10px;
  z-index:0;
  background-image:var(--listing-photo);
  background-size:cover;
  background-position:center;
  filter:blur(18px) saturate(.85);
  opacity:.18;
  transform:scale(1.08);
}
.listing-image.has-photo::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:linear-gradient(135deg,rgba(255,255,255,.62),rgba(247,241,243,.38));
}
.listing-image.has-photo>img{
  position:relative;
  z-index:1;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  padding:7px;
  filter:drop-shadow(0 5px 12px rgba(28,15,20,.08));
}
.listing-image .badge,.listing-image .owner-badge,.listing-image+.listing-body{
  position:relative;
  z-index:3;
}

/* Detail thumbnails may crop for the mosaic preview; full image is always visible in the lightbox. */
.photo-thumb img{
  object-fit:cover!important;
  object-position:center center!important;
}

/* Adaptive gallery/lightbox */
#photoLightbox.photo-lightbox{
  width:auto;
  max-width:calc(100vw - 20px);
  max-height:calc(100vh - 20px);
  overflow:visible;
  padding:0;
  border:0;
  border-radius:22px;
  background:transparent!important;
  box-shadow:none!important;
}
#photoLightbox::backdrop{
  background:rgba(18,14,16,.88);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.photo-lightbox-shell{
  position:relative;
  width:max-content;
  max-width:calc(100vw - 20px);
  max-height:calc(100vh - 20px);
  padding:14px 14px 12px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:22px;
  background:rgba(22,18,20,.94);
  box-shadow:0 30px 100px rgba(0,0,0,.42);
  color:#fff;
}
.photo-lightbox-stage{
  width:max-content;
  max-width:calc(100vw - 48px);
  max-height:calc(100vh - 105px);
  min-width:min(320px,calc(100vw - 48px));
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:15px;
  background:radial-gradient(circle at 50% 45%,#383033,#171416 72%);
  touch-action:pan-y;
}
.photo-lightbox-stage img{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:min(88vw,1280px)!important;
  max-height:calc(100vh - 125px)!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:auto;
  border-radius:12px;
  transition:opacity .18s ease,transform .22s ease;
}
.photo-lightbox-stage img.is-loading{
  opacity:.35;
  transform:scale(.985);
}
.photo-lightbox-stage[data-orientation="portrait"] img{
  max-width:min(76vw,780px)!important;
  max-height:calc(100vh - 118px)!important;
}
.photo-lightbox-stage[data-orientation="landscape"] img{
  max-width:min(91vw,1360px)!important;
}
.photo-lightbox-close,
.photo-lightbox-arrow{
  position:absolute;
  z-index:6;
  border:0;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:#fff;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  transition:transform .18s ease,background .18s ease;
}
.photo-lightbox-close:hover,
.photo-lightbox-arrow:hover{
  background:rgba(255,255,255,.22);
  transform:scale(1.05);
}
.photo-lightbox-close{
  right:23px;
  top:23px;
  width:42px;
  height:42px;
  border-radius:50%;
  font-size:28px;
}
.photo-lightbox-arrow{
  top:50%;
  width:48px;
  height:48px;
  margin-top:-24px;
  border-radius:50%;
  font-size:22px;
}
.photo-lightbox-arrow.prev{left:24px}
.photo-lightbox-arrow.next{right:24px}
.photo-lightbox-footer{
  min-height:38px;
  padding:10px 5px 0;
  display:flex;
  justify-content:space-between;
  gap:22px;
  align-items:center;
  font-size:11px;
  color:#cfc6ca;
}
.photo-lightbox-footer span{
  max-width:min(70vw,760px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.photo-lightbox-footer strong{
  color:#fff;
  white-space:nowrap;
}

/* Mobile gallery: almost full-screen, swipe-friendly and no new tab/window. */
@media(max-width:650px){
  #photoLightbox.photo-lightbox{
    max-width:100vw;
    max-height:100vh;
  }
  .photo-lightbox-shell{
    width:calc(100vw - 12px);
    max-width:calc(100vw - 12px);
    max-height:calc(100dvh - 12px);
    padding:6px 6px 10px;
    border-radius:18px;
  }
  .photo-lightbox-stage{
    width:100%;
    min-width:0;
    max-width:100%;
    height:calc(100dvh - 74px);
    max-height:calc(100dvh - 74px);
    border-radius:14px;
  }
  .photo-lightbox-stage img,
  .photo-lightbox-stage[data-orientation="portrait"] img,
  .photo-lightbox-stage[data-orientation="landscape"] img{
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100dvh - 90px)!important;
  }
  .photo-lightbox-close{
    right:15px;
    top:15px;
    width:40px;
    height:40px;
  }
  .photo-lightbox-arrow{
    width:44px;
    height:44px;
    margin-top:-22px;
    background:rgba(25,18,21,.56);
  }
  .photo-lightbox-arrow.prev{left:12px}
  .photo-lightbox-arrow.next{right:12px}
  .photo-lightbox-footer{
    padding:8px 8px 0;
  }
}


/* v5.8 — condition overlays, full portrait detail photos, CTA branding and real parallax */

html{
  --paper-parallax-y:0px;
  background:#f7f4f3!important;
}
body{
  position:relative;
  isolation:isolate;
  background:none!important;
  background-image:none!important;
}
body::before{
  content:"";
  position:fixed;
  z-index:-2;
  pointer-events:none;
  left:-90px;
  right:-90px;
  top:-180px;
  bottom:-180px;
  background-color:#f7f4f3;
  background-image:
    linear-gradient(rgba(255,255,255,.66),rgba(255,255,255,.66)),
    var(--site-paper);
  background-repeat:repeat;
  background-position:center top;
  background-size:auto,720px auto;
  transform:translate3d(0,var(--paper-parallax-y),0);
  will-change:transform;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.01) 35%,rgba(111,21,48,.018));
}

/* Status and owner chips float over the image and never consume image space. */
.listing-image .badge{
  position:absolute!important;
  z-index:6!important;
  left:12px!important;
  top:12px!important;
  right:auto!important;
  bottom:auto!important;
  margin:0!important;
  max-width:calc(100% - 80px);
  pointer-events:none;
  background:rgba(255,255,255,.94)!important;
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 7px 20px rgba(28,15,20,.10);
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px);
}
.listing-image .owner-badge{
  position:absolute!important;
  z-index:6!important;
  left:12px!important;
  bottom:12px!important;
  top:auto!important;
  right:auto!important;
  margin:0!important;
  pointer-events:none;
  box-shadow:0 7px 20px rgba(28,15,20,.12);
}
.listing-image + .listing-body{
  position:relative;
  z-index:2;
}

/* Detail preview: full image, no crop. */
.photo-grid{
  grid-auto-rows:112px!important;
  align-items:stretch;
}
.photo-thumb{
  position:relative;
  isolation:isolate;
  overflow:hidden!important;
  background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(240,233,236,.88))!important;
}
.photo-thumb.main{
  grid-row:span 3!important;
}
.photo-thumb img{
  position:relative;
  z-index:1;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  padding:6px;
  background:transparent!important;
  filter:drop-shadow(0 6px 14px rgba(28,15,20,.07));
}

/* CTA with transparent community logo. */
.cta{
  position:relative;
  overflow:hidden;
}
.cta-brand-copy{
  display:flex;
  align-items:center;
  gap:24px;
  min-width:0;
}
.cta-community-logo{
  width:116px;
  height:116px;
  flex:0 0 116px;
  object-fit:contain;
  object-position:center;
  filter:drop-shadow(0 12px 20px rgba(25,7,13,.25));
  transform:rotate(-1.5deg);
  transition:transform .45s cubic-bezier(.2,.75,.2,1),filter .45s ease;
}
.cta:hover .cta-community-logo{
  transform:rotate(1deg) translateY(-4px) scale(1.035);
  filter:drop-shadow(0 16px 26px rgba(25,7,13,.32));
}
.cta-brand-copy>div{min-width:0}
.cta .kicker.light{
  display:block;
  line-height:1.45;
}
.cta p{max-width:650px}

@media(min-width:651px){
  body{background-attachment:scroll!important}
}
@media(max-width:650px){
  body{
    background-attachment:scroll!important;
    background-size:initial!important;
  }
  body::before{
    left:-55px;
    right:-55px;
    top:-120px;
    bottom:-120px;
    background-size:auto,560px auto;
  }
  .photo-grid{
    grid-auto-rows:86px!important;
  }
  .photo-thumb.main{
    grid-column:span 3!important;
    grid-row:span 4!important;
  }
  .cta{
    align-items:stretch!important;
  }
  .cta-brand-copy{
    align-items:flex-start;
    gap:14px;
  }
  .cta-community-logo{
    width:82px;
    height:82px;
    flex-basis:82px;
  }
}
@media(max-width:430px){
  .cta-brand-copy{
    display:grid;
    grid-template-columns:68px 1fr;
    gap:12px;
  }
  .cta-community-logo{
    width:68px;
    height:68px;
    flex-basis:68px;
  }
  .cta h2{
    font-size:30px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body::before{transform:none!important}
  .cta-community-logo{transition:none!important}
}


/* v5.9 — selected category negative state + compact mobile categories + marketplace pagination */

/* Selected category: explicit negative/dark state. */
.category.is-selected{
  background:var(--ink)!important;
  color:#fff!important;
  border-color:var(--ink)!important;
  box-shadow:0 11px 28px rgba(24,23,26,.18)!important;
  transform:translateY(-2px);
}
.category.is-selected .icon{
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
}
.category.is-selected small{
  color:#c9c5c8!important;
}
@media(hover:hover){
  .category.is-selected:hover{
    background:#242226!important;
    border-color:#242226!important;
    box-shadow:0 14px 31px rgba(24,23,26,.22)!important;
  }
}

/* Pagination appears above and below the listing grid only when > 150 filtered results. */
.market-pagination{
  margin:4px 0 18px;
  padding:5px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  scroll-margin-top:92px;
}
.market-pagination[hidden]{display:none!important}
#marketPaginationBottom{
  margin:22px 0 0;
}
.pagination-summary{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  white-space:nowrap;
}
.pagination-controls{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:3px;
  min-width:0;
}
.pagination-pages{
  display:flex;
  align-items:center;
  gap:2px;
  margin:0 3px;
}
.page-control{
  appearance:none;
  -webkit-appearance:none;
  min-width:34px;
  height:36px;
  padding:0 7px;
  border:0!important;
  border-bottom:2px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  color:var(--wine)!important;
  font-size:17px;
  line-height:1;
  font-weight:900;
  cursor:pointer;
  box-shadow:none!important;
  transition:transform var(--motion-fast) ease,color var(--motion-fast) ease,border-color var(--motion-fast) ease,opacity var(--motion-fast) ease;
}
.pagination-pages .page-control{
  min-width:30px;
  font-size:12px;
  font-weight:800;
}
.page-control.current{
  color:var(--ink)!important;
  border-bottom-color:var(--wine)!important;
  cursor:default;
}
.page-control:disabled{
  opacity:.22;
  cursor:default;
}
@media(hover:hover){
  .page-control:not(:disabled):not(.current):hover{
    color:var(--wine2)!important;
    transform:translateY(-2px) scale(1.07);
  }
}

/* Mobile: category footprint is roughly half the old area and cards become square. */
@media(max-width:650px){
  .category-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .category{
    aspect-ratio:1/1;
    min-width:0;
    padding:10px!important;
    overflow:hidden;
  }

  .market-pagination{
    flex-direction:column;
    align-items:stretch;
    gap:7px;
    margin:2px 0 14px;
  }
  #marketPaginationBottom{
    margin-top:17px;
  }
  .pagination-summary{
    text-align:center;
    font-size:9px;
  }
  .pagination-controls{
    justify-content:center;
    width:100%;
    gap:1px;
  }
  .pagination-pages{
    gap:0;
    margin:0 1px;
  }
  .page-control{
    min-width:31px;
    height:34px;
    padding:0 4px;
    font-size:16px;
  }
  .pagination-pages .page-control{
    min-width:27px;
    font-size:11px;
  }
}


/* v5.10 — centered legal footer, dynamic reset button, listing-limit modal */

/* Footer legal copy: exact stacked form, centered on the page on every viewport. */
footer.global-footer .global-footer-note.footer-legal-copy{
  text-align:center!important;
  justify-self:center!important;
  width:100%!important;
  max-width:660px!important;
  margin:0 auto!important;
}
footer.global-footer .footer-legal-copy p{
  margin:0!important;
  color:#777277!important;
  font-size:10px!important;
  line-height:1.55!important;
  text-align:center!important;
}
footer.global-footer .footer-legal-copy .footer-powered{
  margin-top:14px!important;
  color:#5f5a5e!important;
  font-weight:700!important;
}

/* Make all footer note text centered too, including Noutăți/Admin. */
footer.global-footer .global-footer-note{
  text-align:center!important;
  justify-self:center!important;
}

/* Dynamic burgundy reset button. */
#allCategories{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(111,21,48,.15)!important;
  border-radius:12px!important;
  background:var(--wine)!important;
  color:#fff!important;
  padding:11px 16px!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:-.01em;
  box-shadow:0 7px 18px rgba(111,21,48,.16)!important;
  transform:translateZ(0);
  transition:transform .18s ease,box-shadow .22s ease,background .18s ease!important;
}
#allCategories::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.18) 47%,transparent 72%);
  transform:translateX(-135%);
  transition:transform .55s ease;
  pointer-events:none;
}
@media(hover:hover){
  #allCategories:hover{
    background:var(--wine2)!important;
    transform:translateY(-2px);
    box-shadow:0 11px 24px rgba(111,21,48,.22)!important;
  }
  #allCategories:hover::before{
    transform:translateX(135%);
  }
}
#allCategories:active{
  transform:scale(.975)!important;
}

/* Friendly listing-limit dialog. */
.listing-limit-modal{
  max-width:540px;
}
.listing-limit-modal .detail-desc{
  margin-top:2px;
  font-size:13px;
  line-height:1.65;
}
.listing-limit-actions{
  align-items:center;
}
@media(max-width:650px){
  footer.global-footer .global-footer-note,
  footer.global-footer .global-footer-note.footer-legal-copy,
  footer.global-footer .footer-legal-copy p{
    text-align:center!important;
  }
  #allCategories{
    padding:9px 12px!important;
    font-size:10px!important;
    white-space:nowrap;
  }
  .listing-limit-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .listing-limit-actions button{
    width:100%;
  }
}


/* v5.11 — seller ratings + horizontal "Alte Anunțuri" popup */

.seller-rating-block{
  margin:16px 0 12px;
  padding:12px 14px;
  border:1px solid rgba(111,21,48,.10);
  border-radius:14px;
  background:rgba(111,21,48,.035);
}
.seller-rating-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.seller-rating-stars{
  display:inline-flex;
  align-items:center;
  gap:2px;
  flex:0 0 auto;
}
.seller-rating-star{
  display:inline-grid;
  place-items:center;
  width:24px;
  height:28px;
  padding:0!important;
  border:0!important;
  border-radius:6px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#b9b1b5;
  font-size:23px;
  line-height:1;
  font-weight:900;
}
.seller-rating-star.filled{
  color:var(--wine)!important;
}
.seller-rating-star.rating-action{
  cursor:pointer;
  transition:transform .16s ease,color .16s ease,background .16s ease!important;
}
.seller-rating-star.rating-action.selected{
  color:var(--wine)!important;
  transform:scale(1.12);
  background:rgba(111,21,48,.08)!important;
}
.seller-rating-count{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.seller-rating-hint{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
}
@media(hover:hover){
  .seller-rating-star.rating-action:hover{
    color:var(--wine)!important;
    transform:translateY(-2px) scale(1.13);
    background:rgba(111,21,48,.07)!important;
  }
}

.seller-other-listings-btn{
  margin-bottom:8px;
}
.seller-listings-modal{
  width:min(960px,calc(100vw - 36px));
  max-width:960px;
}
.seller-listings-subtitle{
  margin:3px 0 0;
  font-size:10px;
}
.seller-listings-scroller{
  display:flex;
  gap:14px;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:5px 2px 14px;
  scroll-snap-type:x mandatory;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(111,21,48,.38) transparent;
}
.seller-listings-scroller::-webkit-scrollbar{
  height:6px;
}
.seller-listings-scroller::-webkit-scrollbar-track{
  background:transparent;
}
.seller-listings-scroller::-webkit-scrollbar-thumb{
  background:rgba(111,21,48,.32);
  border-radius:99px;
}
.seller-other-card{
  flex:0 0 245px;
  width:245px;
  padding:0!important;
  overflow:hidden;
  text-align:left;
  border:1px solid rgba(111,21,48,.10)!important;
  border-radius:17px!important;
  background:rgba(255,255,255,.94)!important;
  color:var(--ink)!important;
  box-shadow:0 7px 20px rgba(45,18,27,.055)!important;
  scroll-snap-align:start;
  cursor:pointer;
}
.seller-other-image{
  position:relative;
  height:185px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:linear-gradient(135deg,#f5eff1,#eee5e8);
}
.seller-other-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
  padding:6px;
}
.seller-other-image .badge{
  position:absolute!important;
  z-index:3;
  left:10px!important;
  top:10px!important;
  right:auto!important;
  bottom:auto!important;
  padding:7px 9px!important;
  font-size:8px!important;
  pointer-events:none;
}
.seller-other-body{
  display:grid;
  gap:7px;
  padding:13px;
}
.seller-other-body h3{
  margin:0;
  font-size:16px;
  line-height:1.18;
  letter-spacing:-.025em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.seller-other-body strong{
  color:var(--wine);
  font-size:18px;
}
.seller-other-body span{
  color:var(--muted);
  font-size:9px;
}
.seller-listings-empty{
  flex:1 0 100%;
  min-height:150px;
  display:grid;
  place-content:center;
}

@media(hover:hover){
  .seller-other-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(45,18,27,.10)!important;
  }
}
@media(max-width:650px){
  .seller-rating-block{
    margin:14px 0 10px;
    padding:10px 11px;
  }
  .seller-rating-row{
    gap:7px;
  }
  .seller-rating-star{
    width:22px;
    height:27px;
    font-size:22px;
  }
  .seller-rating-count{
    font-size:10px;
  }
  .seller-listings-modal{
    width:calc(100vw - 18px);
    max-width:calc(100vw - 18px);
  }
  .seller-listings-scroller{
    margin-right:-10px;
    padding-right:10px;
    gap:10px;
  }
  .seller-other-card{
    flex-basis:78vw;
    width:78vw;
    max-width:285px;
  }
  .seller-other-image{
    height:210px;
  }
}


/* v5.12 — visual image editor for listing create/edit */

.listing-image-editor{
  margin-top:2px;
  padding:16px;
  border:1px solid rgba(111,21,48,.10);
  border-radius:18px;
  background:rgba(111,21,48,.028);
}
.listing-image-editor[hidden]{display:none!important}
.listing-image-editor-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:13px;
}
.listing-image-editor-head>div{
  display:flex;
  align-items:baseline;
  min-width:0;
}
.listing-image-editor-head b{
  font-size:15px;
  letter-spacing:-.02em;
}
#listingImageEditorCount{
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}
.add-more-images{
  flex:0 0 auto;
  border-radius:999px!important;
  padding:9px 14px!important;
  font-size:10px!important;
}
.listing-image-editor-grid{
  display:flex;
  align-items:stretch;
  gap:10px;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:3px 2px 10px;
  scroll-snap-type:x proximity;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(111,21,48,.30) transparent;
}
.listing-image-editor-grid::-webkit-scrollbar{height:5px}
.listing-image-editor-grid::-webkit-scrollbar-track{background:transparent}
.listing-image-editor-grid::-webkit-scrollbar-thumb{
  background:rgba(111,21,48,.28);
  border-radius:99px;
}
.listing-image-edit-card{
  position:relative;
  flex:0 0 118px;
  width:118px;
  height:118px;
  overflow:hidden;
  border:1px solid rgba(111,21,48,.12);
  border-radius:13px;
  background:#f2edef;
  box-shadow:0 5px 14px rgba(45,18,27,.055);
  scroll-snap-align:start;
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
  touch-action:none;
  transition:transform .16s ease,box-shadow .16s ease,opacity .16s ease;
}
.listing-image-edit-card:active{cursor:grabbing}
.listing-image-edit-card.dragging{
  z-index:20;
  opacity:.88;
  transform:scale(1.055) rotate(1deg);
  box-shadow:0 15px 34px rgba(45,18,27,.20);
}
.listing-image-edit-card img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  pointer-events:none;
  -webkit-user-drag:none;
}
.listing-image-remove{
  position:absolute!important;
  z-index:5;
  top:7px!important;
  right:7px!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  padding:0!important;
  display:grid!important;
  place-items:center;
  border:1px solid rgba(255,255,255,.65)!important;
  border-radius:50%!important;
  background:rgba(111,21,48,.90)!important;
  color:#fff!important;
  font-size:20px!important;
  line-height:1!important;
  font-weight:500!important;
  box-shadow:0 5px 12px rgba(30,10,16,.22)!important;
  cursor:pointer;
}
.listing-image-primary,
.listing-image-new{
  position:absolute;
  z-index:4;
  left:7px;
  bottom:7px;
  padding:5px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:var(--wine);
  font-size:7px;
  line-height:1;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.05em;
  box-shadow:0 4px 10px rgba(30,10,16,.08);
}
.listing-image-new{
  left:auto;
  right:7px;
  background:rgba(24,23,26,.84);
  color:#fff;
}
.listing-image-drag-handle{
  position:absolute;
  z-index:3;
  left:50%;
  top:7px;
  transform:translateX(-50%) rotate(90deg);
  color:rgba(255,255,255,.92);
  font-size:14px;
  line-height:1;
  font-weight:950;
  text-shadow:0 1px 5px rgba(0,0,0,.45);
  pointer-events:none;
}
.listing-image-editor-tip{
  margin:8px 0 0;
  color:var(--muted);
  font-size:9px;
  line-height:1.5;
}
@media(hover:hover){
  .listing-image-edit-card:hover{
    transform:translateY(-2px);
    box-shadow:0 9px 22px rgba(45,18,27,.10);
  }
  .listing-image-remove:hover{
    transform:scale(1.08)!important;
    background:#8b1838!important;
  }
}
@media(max-width:650px){
  .listing-image-editor{
    margin-left:-2px;
    margin-right:-2px;
    padding:13px 11px;
    border-radius:16px;
  }
  .listing-image-editor-head{
    margin-bottom:10px;
  }
  .listing-image-editor-head b{font-size:14px}
  .add-more-images{
    padding:8px 11px!important;
    font-size:9px!important;
  }
  .listing-image-editor-grid{
    margin-right:-11px;
    padding-right:11px;
    gap:8px;
  }
  .listing-image-edit-card{
    flex-basis:104px;
    width:104px;
    height:104px;
    border-radius:12px;
  }
  .listing-image-remove{
    width:27px!important;
    height:27px!important;
    min-width:27px!important;
    top:6px!important;
    right:6px!important;
  }
  .listing-image-editor-tip{
    font-size:8.5px;
  }
}


/* v5.13 — cross-browser image editor fixes */

/* Center the safety note only inside the publish/edit listing window. */
#sellModal .notice{
  width:100%;
  text-align:center!important;
  display:block!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
#sellModal .notice{
  text-wrap:balance;
}

/* Dragging on iOS/desktop: disable snap only while sorting and give clear feedback. */
.listing-image-editor-grid.is-dragging{
  scroll-snap-type:none!important;
  cursor:grabbing;
}
.listing-image-editor-grid.is-dragging .listing-image-edit-card:not(.dragging){
  transition:transform .14s ease,box-shadow .14s ease;
}
.listing-image-edit-card{
  -webkit-touch-callout:none;
}
.listing-image-edit-card.dragging{
  pointer-events:none;
}

/* Existing images must always render even when browser has stale frame/image CSS. */
#listingImageEditorGrid .listing-image-edit-card img{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:cover!important;
  object-position:center center!important;
}

/* Keep the editor visible and usable on wide desktop layouts. */
@media(min-width:651px){
  #listingImageEditor{
    width:100%;
    max-width:100%;
  }
  #listingImageEditorGrid{
    min-height:133px;
  }
}

/* Mobile sorter: horizontal drag is handled by JS; vertical page behavior remains stable outside cards. */
@media(max-width:650px){
  #listingImageEditorGrid{
    touch-action:pan-y;
  }
  .listing-image-edit-card{
    touch-action:none!important;
  }
  #sellModal .notice{
    padding-left:14px!important;
    padding-right:14px!important;
    line-height:1.5;
  }
}
\n\n/* v5.16 — full Terms of Use + moderation policy */\n#legalModal{\n  width:min(900px,calc(100vw - 26px));\n  max-width:900px;\n  max-height:90vh;\n  overflow:auto;\n}\n#legalContent{\n  padding:30px 34px 38px;\n}\n#legalContent .legal-modal-head{\n  position:sticky;\n  top:-30px;\n  z-index:8;\n  margin:-30px -34px 22px;\n  padding:26px 34px 18px;\n  background:rgba(255,255,255,.975);\n  border-bottom:1px solid rgba(111,21,48,.09);\n  -webkit-backdrop-filter:blur(12px);\n  backdrop-filter:blur(12px);\n}\n.legal-doc{\n  color:#373238;\n  font-size:13px;\n  line-height:1.68;\n}\n.legal-doc-title{\n  margin:0 0 4px;\n  color:var(--ink);\n  font-size:20px;\n  line-height:1.2;\n  letter-spacing:-.025em;\n}\n.legal-doc-subtitle{\n  margin:0 0 18px!important;\n  color:var(--wine);\n}\n.legal-doc-meta{\n  margin:2px 0!important;\n  color:var(--muted);\n  font-size:11px;\n}\n.legal-doc h4{\n  margin:28px 0 9px;\n  padding-top:4px;\n  color:var(--wine);\n  font-size:15px;\n  line-height:1.35;\n  letter-spacing:-.015em;\n}\n.legal-doc p{\n  margin:0 0 13px;\n}\n.legal-doc ul{\n  margin:6px 0 16px;\n  padding-left:22px;\n}\n.legal-doc li{\n  margin:5px 0;\n}\n.legal-doc a{\n  color:var(--wine);\n  font-weight:750;\n  overflow-wrap:anywhere;\n}\n@media(max-width:650px){\n  #legalModal{\n    width:calc(100vw - 18px);\n    max-width:calc(100vw - 18px);\n    max-height:92vh;\n  }\n  #legalContent{\n    padding:22px 18px 30px;\n  }\n  #legalContent .legal-modal-head{\n    top:-22px;\n    margin:-22px -18px 18px;\n    padding:20px 18px 14px;\n  }\n  #legalContent .legal-modal-head h2{\n    max-width:260px;\n    font-size:24px;\n    line-height:1.05;\n  }\n  .legal-doc{\n    font-size:12px;\n    line-height:1.62;\n  }\n  .legal-doc-title{font-size:17px}\n  .legal-doc h4{\n    margin-top:24px;\n    font-size:14px;\n  }\n}\n

/* v5.17 — full Privacy Policy */
.legal-doc-emphasis{
  margin-top:17px!important;
  color:var(--ink);
}
.legal-table-wrap{
  width:100%;
  overflow-x:auto;
  margin:10px 0 20px;
  border:1px solid rgba(111,21,48,.10);
  border-radius:12px;
  -webkit-overflow-scrolling:touch;
}
.legal-doc table{
  width:100%;
  min-width:650px;
  border-collapse:collapse;
  background:rgba(255,255,255,.72);
  font-size:11px;
  line-height:1.48;
}
.legal-doc th,
.legal-doc td{
  padding:10px 11px;
  vertical-align:top;
  text-align:left;
  border-right:1px solid rgba(111,21,48,.08);
  border-bottom:1px solid rgba(111,21,48,.08);
}
.legal-doc th:last-child,
.legal-doc td:last-child{
  border-right:0;
}
.legal-doc tr:last-child td{
  border-bottom:0;
}
.legal-doc th{
  position:sticky;
  top:0;
  background:#f6eef1;
  color:var(--wine);
  font-weight:850;
}
.legal-privacy-doc strong{
  color:inherit;
}
@media(max-width:650px){
  .legal-table-wrap{
    margin-left:0;
    margin-right:0;
  }
  .legal-doc table{
    min-width:590px;
    font-size:10.5px;
  }
  .legal-doc th,
  .legal-doc td{
    padding:9px 10px;
  }
}


/* v5.18 — fourth Safety card: "Fără Cookies" */
@media(min-width:901px){
  .trust{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .trust-card{
    padding:24px 22px!important;
  }
  .trust-card h3{
    font-size:18px!important;
  }
  .trust-card p{
    font-size:12px!important;
  }
}

@media(min-width:651px) and (max-width:900px){
  .trust{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
}

.trust-card-cookies code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:.9em;
  color:var(--wine);
  background:rgba(111,21,48,.055);
  border-radius:5px;
  padding:1px 4px;
}

@media(max-width:650px){
  .trust{
    grid-template-columns:1fr!important;
  }
}


/* v5.19 — Safety cards: card 03 dark, justified text, richer hover motion */
#siguranta .trust-card{
  position:relative;
  overflow:hidden;
  text-align:justify!important;
  text-justify:inter-word;
  transform-origin:center center;
}
#siguranta .trust-card h3,
#siguranta .trust-card p{
  text-align:justify!important;
  text-justify:inter-word;
}
#siguranta .trust-card h3{
  line-height:1.12;
}
#siguranta .trust-card p{
  line-height:1.58;
}
#siguranta .trust-card::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:3px;
  background:linear-gradient(90deg,rgba(111,21,48,.0),rgba(111,21,48,.36),rgba(111,21,48,.0));
  opacity:.26;
  transition:opacity var(--motion-fast) ease,transform var(--motion) ease;
  transform:scaleX(.72);
}
#siguranta .trust-card.dark::after{
  background:linear-gradient(90deg,rgba(255,255,255,.0),rgba(255,255,255,.42),rgba(255,255,255,.0));
  opacity:.34;
}
@media(hover:hover){
  #siguranta .trust-card:hover{
    transform:translateY(-7px) scale(1.012);
    box-shadow:0 18px 38px rgba(45,18,27,.14),0 6px 16px rgba(45,18,27,.08)!important;
  }
  #siguranta .trust-card:hover::after{
    opacity:.92;
    transform:scaleX(1);
  }
}
#siguranta .trust-card:active{
  transform:translateY(-2px) scale(.995);
}


/* v5.20 — standalone iOS/PWA pull-to-refresh */
.pwa-pull-refresh{
  --pull-progress:0;
  position:fixed;
  z-index:100000;
  top:calc(env(safe-area-inset-top,0px) + 10px);
  left:50%;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:7px 13px 7px 8px;
  border:1px solid rgba(111,21,48,.12);
  border-radius:999px;
  background:rgba(255,255,255,.97);
  color:var(--ink);
  box-shadow:0 10px 30px rgba(35,15,22,.16);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  opacity:0;
  pointer-events:none;
  transform:
    translate(-50%,-155%)
    scale(calc(.94 + min(var(--pull-progress),1)*.06));
  transition:
    opacity .15s ease,
    transform .18s cubic-bezier(.2,.75,.2,1),
    border-color .15s ease;
}
.pwa-pull-refresh.visible{
  opacity:1;
  transform:translate(-50%,0) scale(1);
}
.pwa-pull-refresh-icon{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex:0 0 28px;
  border-radius:50%;
  background:var(--wine);
  color:#fff;
  font-size:18px;
  font-weight:900;
  line-height:1;
  transition:transform .18s ease,background-color .18s ease;
}
.pwa-pull-refresh-label{
  font-size:10px;
  font-weight:850;
  white-space:nowrap;
}
.pwa-pull-refresh.armed{
  border-color:rgba(111,21,48,.28);
}
.pwa-pull-refresh.armed .pwa-pull-refresh-icon{
  transform:rotate(90deg);
}
.pwa-pull-refresh.refreshing .pwa-pull-refresh-icon{
  animation:pwaRefreshSpin .72s linear infinite;
}
.pwa-pull-refresh.offline .pwa-pull-refresh-icon{
  background:#8d2525;
}
@keyframes pwaRefreshSpin{
  to{transform:rotate(360deg)}
}
@media(max-width:430px){
  .pwa-pull-refresh{
    max-width:calc(100vw - 28px);
  }
  .pwa-pull-refresh-label{
    font-size:9.5px;
  }
}
@media(prefers-reduced-motion:reduce){
  .pwa-pull-refresh,
  .pwa-pull-refresh-icon{
    transition:none!important;
    animation-duration:.01ms!important;
  }
}


/* v5.21 — message deletion + phone Incognito */

.conversation-card-wrap{
  position:relative;
  margin-bottom:7px;
}
.conversation-card-wrap .conversation-card{
  width:100%;
  margin-bottom:0!important;
  padding-right:44px!important;
}
.conversation-delete{
  position:absolute!important;
  z-index:4;
  top:7px!important;
  right:7px!important;
  width:27px!important;
  height:27px!important;
  min-width:27px!important;
  padding:0!important;
  display:grid!important;
  place-items:center;
  border:1px solid rgba(255,255,255,.78)!important;
  border-radius:50%!important;
  background:rgba(111,21,48,.92)!important;
  color:#fff!important;
  font-size:19px!important;
  line-height:1!important;
  font-weight:500!important;
  box-shadow:0 5px 13px rgba(35,15,22,.18)!important;
  cursor:pointer;
}
@media(hover:hover){
  .conversation-delete:hover{
    transform:translateY(-1px) scale(1.09)!important;
    background:var(--wine2)!important;
    box-shadow:0 8px 17px rgba(35,15,22,.24)!important;
  }
}

.contact-incognito-setting{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 15px;
  border:1px solid rgba(111,21,48,.11);
  border-radius:14px;
  background:rgba(111,21,48,.035);
}
.contact-incognito-copy{
  display:grid;
  gap:4px;
  min-width:0;
}
.contact-incognito-copy b{
  color:var(--ink);
  font-size:12px;
}
.contact-incognito-copy span{
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
}
.incognito-switch{
  display:flex!important;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  cursor:pointer;
  user-select:none;
}
.incognito-switch input{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none;
}
.incognito-track{
  position:relative;
  width:48px;
  height:27px;
  flex:0 0 48px;
  border-radius:999px;
  background:#d9d5d7;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.05);
  transition:background-color .18s ease,box-shadow .18s ease;
}
.incognito-track i{
  position:absolute;
  top:3px;
  left:3px;
  width:21px;
  height:21px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 7px rgba(0,0,0,.16);
  transition:transform .2s cubic-bezier(.2,.75,.2,1);
}
.incognito-switch input:checked + .incognito-track{
  background:var(--wine);
  box-shadow:inset 0 0 0 1px rgba(111,21,48,.20),0 5px 14px rgba(111,21,48,.13);
}
.incognito-switch input:checked + .incognito-track i{
  transform:translateX(21px);
}
.incognito-switch strong{
  width:28px;
  color:var(--muted);
  font-size:9px;
  font-weight:900;
}
.incognito-switch strong.on{
  color:var(--wine);
}
.incognito-switch:focus-within .incognito-track{
  outline:3px solid rgba(111,21,48,.11);
  outline-offset:2px;
}

.seller-incognito-note{
  display:grid;
  gap:3px;
  margin-top:8px;
  padding:10px 11px;
  border:1px solid rgba(111,21,48,.10);
  border-radius:10px;
  background:rgba(111,21,48,.045);
  text-align:center;
}
.seller-incognito-note b{
  color:var(--wine);
  font-size:10px;
}
.seller-incognito-note span{
  color:var(--muted);
  font-size:9px;
  line-height:1.4;
}

@media(max-width:650px){
  .contact-incognito-setting{
    align-items:flex-start;
    gap:12px;
    padding:12px;
  }
  .incognito-switch{
    padding-top:2px;
  }
  .conversation-delete{
    top:6px!important;
    right:6px!important;
  }
}


/* v5.24 — mandatory Terms + Privacy acknowledgement on signup */
.signup-legal-consent{
  display:grid;
  grid-template-columns:26px minmax(0,1fr);
  align-items:start;
  gap:10px;
  margin-top:13px;
  padding:11px 12px;
  border:1px solid rgba(111,21,48,.13);
  border-radius:11px;
  background:rgba(111,21,48,.035);
  transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease;
}
.signup-legal-consent[hidden]{
  display:none!important;
}
.signup-legal-consent.accepted{
  border-color:rgba(111,21,48,.25);
  background:rgba(111,21,48,.055);
}
.signup-consent-check{
  position:relative;
  display:grid!important;
  place-items:center;
  width:25px;
  height:25px;
  margin:0!important;
  padding:0!important;
  cursor:pointer;
}
.signup-consent-check input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  margin:0!important;
  pointer-events:none;
}
.signup-consent-box{
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  border:1px solid #cec4c8;
  border-radius:6px;
  background:#fff;
  color:transparent;
  font-size:14px;
  font-weight:950;
  box-shadow:0 2px 6px rgba(30,10,16,.04);
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
.signup-consent-check input:checked + .signup-consent-box{
  background:var(--wine);
  border-color:var(--wine);
  color:#fff;
  transform:scale(1.04);
}
.signup-consent-check input:focus-visible + .signup-consent-box{
  outline:3px solid rgba(111,21,48,.12);
  outline-offset:2px;
}
.signup-legal-consent p{
  margin:1px 0 0;
  color:#6f686c;
  font-size:10px;
  line-height:1.55;
}
.signup-legal-link{
  display:inline;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--wine)!important;
  font:inherit;
  font-weight:850!important;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
  cursor:pointer;
  box-shadow:none!important;
}
.signup-legal-link:hover{
  color:var(--wine2)!important;
  transform:none!important;
}
#authSubmit:disabled{
  opacity:.46!important;
  cursor:not-allowed!important;
  transform:none!important;
  box-shadow:none!important;
}
@media(max-width:650px){
  .signup-legal-consent{
    grid-template-columns:25px minmax(0,1fr);
    gap:9px;
    padding:10px 11px;
  }
  .signup-legal-consent p{
    font-size:9.5px;
  }
}


/* v5.25 — iOS photo preparation + visible publish status */
.sell-publish-status{
  margin-top:14px;
  padding:11px 13px;
  border:1px solid rgba(111,21,48,.12);
  border-radius:10px;
  background:#f7f3f4;
  color:var(--ink);
  font-size:10px;
  font-weight:700;
  line-height:1.45;
  text-align:center;
}
.sell-publish-status[hidden]{
  display:none!important;
}
.sell-publish-status[data-type="error"]{
  border-color:rgba(157,42,42,.22);
  background:#fff0f0;
  color:#942929;
}
.sell-publish-status[data-type="success"]{
  border-color:rgba(33,116,64,.18);
  background:#edf8f0;
  color:#216f3e;
}
#sellModal #publishBtn:disabled{
  opacity:.58;
  cursor:not-allowed;
}
@media(max-width:650px){
  .sell-publish-status{
    font-size:9.5px;
    padding:10px 11px;
  }
}


/* v5.25 — numeric seller rating + administrative notices */
.seller-rating-average{
  color:var(--wine);
  font-size:12px;
  font-weight:950;
  white-space:nowrap;
}
.admin-notice-list{
  grid-column:1/-1;
  display:grid;
  gap:8px;
  margin-bottom:4px;
}
.admin-notice-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 2px 3px;
}
.admin-notice-head b{font-size:12px}
.admin-notice-head span{font-size:9px;color:var(--muted)}
.admin-notice-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:11px 12px;
  border:1px solid rgba(111,21,48,.14);
  border-radius:12px;
  background:#fbf5f7;
}
.admin-notice-badge{
  padding:5px 7px;
  border-radius:7px;
  background:var(--wine);
  color:#fff;
  font-size:8px;
  font-weight:950;
  letter-spacing:.08em;
}
.admin-notice-card p{
  margin:0;
  color:var(--ink);
  font-size:12px;
  line-height:1.5;
  white-space:pre-wrap;
}
.admin-notice-card small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:8px;
}


/* v5.26 — iOS/PWA legal tables: keep typography consistent across cells. */
.legal-table-wrap,
.legal-doc table,
.legal-doc thead,
.legal-doc tbody,
.legal-doc tr,
.legal-doc th,
.legal-doc td{
  font-family:inherit!important;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
.legal-doc th,
.legal-doc td{
  font-size:inherit!important;
  line-height:1.48!important;
}
@media(max-width:650px){
  .legal-doc table{
    font-size:10.5px!important;
  }
  .legal-doc th,
  .legal-doc td{
    font-size:10.5px!important;
    line-height:1.48!important;
  }
}
