html, body { height: 100%; width: 100%; max-width: 100%; overflow: hidden; }
#shell { height: 100%; height: 100dvh; width: 100%; max-width: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.desk-nav { display: none; flex-shrink: 0; width: 100%; }
#appRoot { flex: 1; min-height: 0; min-width: 0; width: 100%; position: relative; overflow: hidden; }
.screen { height: 100%; width: 100%; max-width: 100%; display: flex; flex-direction: column; background: var(--kz-bg); overflow: hidden; min-height: 0; min-width: 0; position: relative; }
.screen.enter { animation: in .32s var(--kz-ease); }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.status-bar { height: env(safe-area-inset-top, 8px); flex-shrink: 0; }
.scroll { flex: 1; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll::-webkit-scrollbar { display: none; }
.has-nav { padding-bottom: 108px; }
.has-cta { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }

.bottom-nav {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  min-height: 72px; padding: 10px 6px 12px; background: rgba(255,251,247,.96);
  backdrop-filter: blur(16px); border: 1px solid var(--kz-line); border-radius: 22px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; z-index: 40;
  box-shadow: var(--kz-shadow); overflow: visible;
}
.nav-item {
  border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 2px; color: var(--kz-muted); font-size: 9px; font-weight: 500;
  min-width: 0; min-height: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-item svg { width: 22px; height: 22px; display: block; }
.nav-item.active { color: var(--kz-primary); }
.nav-ico { position: relative; display: grid; place-items: center; width: 32px; height: 28px; }
.nav-item .badge {
  position: absolute; top: 0; right: 0; background: var(--kz-primary); color: #fff;
  font-size: 9px; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px;
}
.sell-fab {
  width: 44px; height: 44px; border-radius: 14px; background: var(--kz-primary); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(196,92,38,.35);
}
.sell-fab svg { width: 22px; height: 22px; }

.home-head { display: flex; justify-content: space-between; align-items: center; padding: 8px var(--kz-gutter); flex-shrink: 0; }
.city-btn { background: none; border: 0; text-align: left; cursor: pointer; }
.city-btn small { display: block; font-size: 11px; color: var(--kz-muted); letter-spacing: .08em; text-transform: uppercase; }
.city-btn b { font-family: var(--serif); font-size: 24px; font-style: italic; font-weight: 600; letter-spacing: -.03em; }
.head-actions { display: flex; gap: 8px; }

.search-bar {
  display: flex; align-items: center; gap: 10px; background: var(--kz-surface);
  border: 1px solid var(--kz-line); border-radius: 14px; padding: 0 14px;
  margin: 0 var(--kz-gutter) 12px; min-height: 48px; cursor: text; color: var(--kz-muted);
  width: auto;
}
.search-bar:focus-within { border-color: var(--kz-primary); background: #fff; }
.search-bar input { border: 0; outline: 0; width: 100%; min-width: 0; background: transparent; color: var(--kz-ink); font: inherit; font-size: 16px; height: 48px; }
.search-bar svg { width: 18px; height: 18px; flex-shrink: 0; }

.hero-carousel {
  margin: 0 var(--kz-gutter) 16px; border-radius: var(--kz-radius-lg); overflow: hidden;
  height: 230px; position: relative; background: #3a2a22; color: #fff;
  width: auto;
}
.hero-track { display: flex; height: 100%; width: 100%; transition: transform .5s var(--kz-ease); }
.hero-slide {
  min-width: 100%; height: 100%; border: 0; padding: 0; position: relative; cursor: pointer; background: #3a2a22;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center center; pointer-events: none; }
.hero-slide .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 22px 20px;
  background: linear-gradient(180deg, rgba(28,20,16,0) 32%, rgba(28,20,16,.08) 58%, rgba(28,20,16,.78) 100%);
  text-align: left; color: #fff;
}
.hero-slide span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #e8c9a8; margin-bottom: 4px; }
.hero-slide strong { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 5vw, 28px); font-weight: 600; line-height: 1.2; max-width: 18ch; }
/* Swipe/drag: the browser keeps vertical scroll (and pull-to-refresh);
   horizontal drags are handled in JS (wireHero). */
.hero-carousel { touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.hero-carousel:focus-visible { box-shadow: 0 0 0 3px var(--kz-primary); }
.hero-slide { -webkit-user-drag: none; }
/* Dots are 24px tap targets around a small visible pill. */
.hero-dots { position: absolute; bottom: 4px; right: 8px; display: flex; gap: 0; z-index: 2; }
.hero-dot { border: 0; background: transparent; padding: 8px 4px; cursor: pointer; display: flex; align-items: center; }
.hero-dot i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); display: block; transition: width .25s var(--kz-ease), background .25s; }
.hero-dot.on i { background: #fff; width: 16px; border-radius: 4px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(20,14,10,.38); color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: .85; transition: opacity .2s, background .2s;
}
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow:hover { background: rgba(20,14,10,.6); opacity: 1; }
.hero-arrow.prev { left: 8px; }
.hero-arrow.next { right: 8px; }
/* Desktop: arrows appear on hover. Touch screens: swipe + dots, arrows
   stay small and faint so they don't cover the headline. */
@media (hover: hover) and (pointer: fine) {
  .hero-arrow { opacity: 0; }
  .hero-carousel:hover .hero-arrow, .hero-carousel:focus-within .hero-arrow { opacity: .9; }
}
@media (hover: none) {
  .hero-arrow { width: 28px; height: 28px; opacity: .6; }
  .hero-arrow svg { width: 15px; height: 15px; }
}

.cats { display: flex; gap: 8px; padding: 0 0 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; align-items: center; }
.cat {
  flex-shrink: 0; border: 1px solid var(--kz-line); background: var(--kz-surface);
  border-radius: 8px; padding: 10px 14px; font-size: 12px; font-weight: 500; cursor: pointer; color: var(--kz-ink2);
  min-height: 44px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.cat.active, .cat:hover { background: var(--kz-primary); color: #fff; border-color: var(--kz-primary); }
.cat-n {
  font-family: var(--sans, "Outfit"), system-ui, sans-serif;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
  direction: ltr; unicode-bidi: isolate;
  padding: 3px 6px; border-radius: 999px;
  background: var(--kz-blush, #f3e4d8); color: var(--kz-ink);
}
.cat.active .cat-n, .cat:hover .cat-n { background: rgba(255, 255, 255, .22); color: #fff; }

.section-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 0 10px; }
.section-head h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.section-head button {
  border: 0; background: transparent; color: var(--kz-primary); font-size: 12px; font-weight: 600; cursor: pointer;
  min-height: 44px; min-width: 44px; padding: 10px 8px;
}
/* Icon-only filter next to "Overall Listing" (owner: no "Filter" word). */
.section-head .section-filter { display: inline-flex; align-items: center; justify-content: center; padding: 10px; color: var(--kz-ink); }
.section-head .section-filter svg { width: 20px; height: 20px; }
.section-head .section-filter:hover { color: var(--kz-primary); }

.content-rail {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--kz-gutter);
  box-sizing: border-box;
}
.home-stack { padding-top: 4px; padding-bottom: 8px; }
.home-stack .hero-carousel { margin: 0 0 16px; width: 100%; }
.home-stack .cats { width: 100%; }
.home-stack .section-head,
.browse-stack .section-head,
.seller-rail .section-head { padding-inline: 0; }
.home-stack .grid-2,
.browse-stack .grid-2,
.seller-rail .seller-grid { padding: 0 0 16px; width: 100%; max-width: none; margin: 0; }
.browse-stack { padding-top: 8px; padding-bottom: 16px; }
.cat-grid { padding: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 var(--kz-gutter) 16px; }
.grid-2 > * { min-width: 0; }
.card-item {
  background: var(--kz-surface); border: 1px solid var(--kz-line); border-radius: var(--kz-radius);
  overflow: hidden; cursor: pointer; text-align: left; padding: 0; color: inherit;
}
.card-item .img { aspect-ratio: 3/4; background: #efe6dc; position: relative; overflow: hidden; }
.card-item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.heart {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.96); display: grid; place-items: center; color: var(--kz-ink2);
  border: 1px solid rgba(28,20,16,.08); cursor: pointer; z-index: 2; padding: 0;
  box-shadow: 0 4px 12px rgba(28,20,16,.1);
}
.heart svg { width: 16px; height: 16px; display: block; }
.heart.on { color: var(--kz-primary); background: #fff; border-color: var(--kz-primary-soft); }
.card-item .badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; }
.meta { padding: 10px; }
.price { font-weight: 700; font-size: 13px; color: var(--kz-primary); line-height: 1.3; }
.price-lg { font-size: clamp(14px, 3.8vw, 20px); font-weight: 700; color: var(--kz-primary); white-space: normal; text-align: right; line-height: 1.25; }
.title { font-size: 12px; color: var(--kz-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.meta-row { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; align-items: center; }

.interest-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 4px;
}
.interest-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(196, 92, 38, 0.1), rgba(250, 246, 241, 0.95) 55%),
    var(--kz-surface);
  border: 1px solid rgba(196, 92, 38, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.interest-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--kz-primary);
  background: rgba(196, 92, 38, 0.12);
}
.interest-ico svg { width: 18px; height: 18px; display: block; }
.interest-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.interest-copy strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--kz-ink);
  letter-spacing: -0.02em;
}
.interest-copy span {
  font-size: 11px;
  font-weight: 500;
  color: var(--kz-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.item-split { display: flex; flex-direction: column; min-width: 0; width: 100%; }
.item-split .gallery { width: 100%; }
.gallery { height: min(52vh, 420px); position: relative; background: #ece8e0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
/* Blurred copy of the photo fills the letterbox bars left by object-fit: contain. */
.gallery .gallery-bg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(22px) brightness(.9); transform: scale(1.05); pointer-events: none; }
.gallery .gallery-img { position: relative; }
.gallery .gallery-img { cursor: zoom-in; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.gallery .dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.gallery .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); display: block; cursor: pointer; }
.gallery .dots i.on { background: #fff; width: 16px; border-radius: 4px; }
.back-fab, .fav-fab {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 3;
  box-shadow: var(--kz-shadow); background: rgba(255,253,248,.96);
}
.back-fab { left: 16px; } .fav-fab { right: 16px; }
.fav-fab svg { width: 18px; height: 18px; }
.fav-fab.on { color: var(--kz-primary); border-color: var(--kz-primary-soft); }

.detail-body { padding: 20px var(--kz-gutter) 8px; }
.detail-body h2, .page-h, .page-title { font-family: var(--serif); font-weight: 600; overflow-wrap: anywhere; }
.page-title { font-size: 22px; padding: 12px var(--kz-gutter) 14px; }
.page-h { font-size: 20px; flex: 1; min-width: 0; line-height: 1.2; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.attrs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.attr { background: var(--kz-surface); border: 1px solid var(--kz-line); border-radius: 10px; padding: 8px 10px; font-size: 11px; }
.attr b { display: block; color: var(--kz-muted); font-weight: 500; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.desc { font-size: 13px; color: var(--kz-muted); line-height: 1.55; }
.desc-box {
  margin: 4px 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(196, 92, 38, 0.09), rgba(250, 246, 241, 0.98) 58%),
    var(--kz-surface);
  border: 1px solid rgba(196, 92, 38, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.desc-box > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kz-primary);
}
.desc-box .desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--kz-ink2);
  white-space: pre-wrap;
}
.seller-card {
  display: flex; align-items: center; gap: 12px; background: var(--kz-surface);
  border: 1px solid var(--kz-line); border-radius: var(--kz-radius); padding: 12px 14px; margin: 16px 0;
  width: 100%; text-align: left; cursor: pointer;
}
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--kz-primary-soft); }
.stars { color: var(--kz-accent); font-size: 11px; }
.sticky-cta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px var(--kz-gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--kz-bg) 72%, transparent);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; z-index: 5;
}
.sticky-cta .kz-btn { min-width: 0; }
.sticky-cta.triple { grid-template-columns: 1fr 1fr 1.2fr; }

.bid-card {
  background: var(--kz-accent-soft); border: 1px solid #ead9a8; border-radius: var(--kz-radius);
  padding: 12px 14px; margin: 12px 0;
}
.bid-card strong { display: block; font-size: 13px; }
.bid-status { font-size: 12px; margin-top: 4px; }
.bid-status.win { color: var(--kz-success); font-weight: 600; }
.bid-status.out { color: var(--kz-error); font-weight: 600; }

.bids-panel {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--kz-line);
  border-radius: var(--kz-radius);
  background: var(--kz-surface);
}
.spread { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.bids-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bid-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 8px; border-top: 1px solid var(--kz-line);
}
.bid-row:first-child { border-top: 0; padding-top: 0; }
.bid-row-main { display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.bid-row-main strong { font-size: 14px; }
.bid-row-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bid-row-meta .kz-btn { padding: 6px 12px; font-size: 12px; }

.screen.chat-screen { min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px var(--kz-gutter); border-bottom: 1px solid var(--kz-line); background: var(--kz-surface); flex-shrink: 0; }
.chat-head img.thumb { width: 48px; height: 48px; min-width: 48px; min-height: 48px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.chat-head .info { min-width: 0; }
.chat-head .info .muted, .chat-head .info .inbox-sub { display: block; }
.chat-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 16px var(--kz-gutter); display: flex; flex-direction: column; gap: 10px; background: #f4ebe3; }
.chat-bubble { max-width: 78%; padding: 10px 12px; border-radius: 16px; font-size: 13px; line-height: 1.4; }
.chat-bubble.them { background: #fff; border: 1px solid var(--kz-line); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.me { background: var(--kz-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-bubble .time { display: block; font-size: 9px; opacity: .65; margin-top: 4px; }
.msg-tick { width: 13px; height: 13px; vertical-align: -2px; margin-left: 3px; color: currentColor; }
.msg-tick-read { color: #fff; opacity: 1; }
.product-chip { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--kz-line); border-radius: 14px; padding: 10px; align-self: stretch; margin-bottom: 4px; }
.product-chip-open { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.product-chip img { width: 64px; height: 64px; min-width: 64px; min-height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.product-chip .info { min-width: 0; }
.product-chip .info strong { display: block; font-size: 14px; line-height: 1.3; }
.product-chip .info .muted, .product-chip .info .inbox-sub { display: block; font-size: 12px; }
.product-chip .pc-offer { flex-shrink: 0; white-space: nowrap; font-size: 12px; padding: 8px 12px; align-self: center; }
.chat-input { display: flex; align-items: center; gap: 10px; padding: 12px var(--kz-gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--kz-line); flex-shrink: 0; }
.chat-input input { flex: 1; min-width: 0; border: 1px solid var(--kz-line); border-radius: 14px; padding: 12px 14px; outline: none; font: inherit; font-size: 16px; }
.chat-input input:focus { border-color: var(--kz-primary); }
.chat-input button {
  width: 44px; height: 44px; min-width: 44px; border: 0; border-radius: 14px;
  background: var(--kz-primary); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}
.chat-input button svg { width: 20px; height: 20px; display: block; }
.chat-locked-note {
  padding: 14px var(--kz-gutter) calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--kz-surface); border-top: 1px solid var(--kz-line);
  font-size: 12.5px; line-height: 1.45; color: var(--kz-muted); text-align: center; flex-shrink: 0;
}

.order-card {
  background: var(--kz-surface); border: 1px solid var(--kz-line); border-radius: var(--kz-radius);
  padding: 14px; margin: 0 var(--kz-gutter) 10px; width: calc(100% - (var(--kz-gutter) * 2)); max-width: none; text-align: left; cursor: pointer;
  font: inherit; color: inherit; display: block; box-sizing: border-box;
}
.order-card .top { display: flex; gap: 12px; align-items: flex-start; }
.order-card img { width: 56px; height: 56px; min-width: 56px; min-height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--kz-bg); }
.order-card .spread { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.track-line { display: flex; justify-content: space-between; position: relative; margin-top: 14px; }
.track-line::before { content: ""; position: absolute; top: 6px; left: 8%; right: 8%; height: 2px; background: var(--kz-line); }
.track-step { z-index: 1; text-align: center; width: 22%; }
.track-step .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--kz-line); margin: 0 auto 6px; border: 2px solid #fff; }
.track-step.on .dot, .track-step.done .dot { background: var(--kz-primary); }
.track-step span { font-size: 9px; color: var(--kz-muted); }
.status-pill { font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--kz-primary-soft); color: var(--kz-primary); }
.status-pill.completed { background: var(--kz-success-soft); color: var(--kz-success); }
.status-pill.transit, .status-pill.out_for_delivery, .status-pill.assigned_to_rider { background: var(--kz-warning-soft); color: #8A5A00; }
.status-pill.disputed { background: var(--kz-error-soft); color: var(--kz-error); }
.track { display: flex; flex-direction: column; gap: 0; padding: 4px var(--kz-gutter) 8px; }
.track-item { display: flex; gap: 14px; align-items: stretch; }
.track-item .rail {
  display: flex; flex-direction: column; align-items: center; width: 14px; flex-shrink: 0;
}
.track-item .dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--kz-line);
  flex-shrink: 0; box-sizing: border-box; border: 2px solid var(--kz-bg);
}
.track-item.on .dot, .track-item.done .dot { background: var(--kz-primary); border-color: var(--kz-primary-soft); }
.track-item .line {
  width: 2px; flex: 1; min-height: 22px; background: var(--kz-line); margin: 4px 0 0;
}
.track-item.done .line, .track-item.on .line { background: var(--kz-primary-soft); }
.track-item:last-child .line { display: none; }
.track-copy {
  flex: 1; min-width: 0; padding-bottom: 16px;
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
}
.track-item:last-child .track-copy { padding-bottom: 4px; }
.track-copy strong {
  font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--kz-ink);
  display: block;
}
.track-item:not(.on):not(.done) .track-copy strong { color: var(--kz-muted); font-weight: 500; }
.track-note { display: block; font-size: 12px; line-height: 1.35; }

.order-stack {
  padding: 0 0 28px;
  display: flex; flex-direction: column; gap: 0;
}
.order-stack .section-head { padding: 18px var(--kz-gutter) 10px; }
.order-stack .section-head h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 600; font-style: italic;
  color: var(--kz-ink); margin: 0;
}
.order-stack .checkout-totals { margin-top: 0; }
.order-loc {
  margin: 0 var(--kz-gutter);
  padding: 14px 16px;
  background: var(--kz-surface); border: 1px solid var(--kz-line);
  border-radius: var(--kz-radius);
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  box-sizing: border-box;
}
.order-loc strong { font-size: 14px; font-weight: 600; line-height: 1.4; }
.order-loc .muted { white-space: normal; font-size: 12px; line-height: 1.4; }
.order-actions {
  padding: 20px var(--kz-gutter) 8px;
  display: flex; flex-direction: column; gap: 10px;
}
.order-status-note { margin: 4px 0 0; font-size: 13px; line-height: 1.45; }

.order-card .grow strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.order-card .grow .muted { white-space: normal; }

.profile-hero { padding: 8px var(--kz-gutter) 16px; text-align: center; }
.profile-hero img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; }
.ph-name { font-family: var(--serif); font-size: 22px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; padding: 0 var(--kz-gutter) 16px; }
.stat { background: var(--kz-surface); border: 1px solid var(--kz-line); border-radius: var(--kz-radius); padding: 12px 8px; text-align: center; }
.stat strong { display: block; font-size: 16px; } .stat span { font-size: 10px; color: var(--kz-muted); }
.menu-list { padding: 0 var(--kz-gutter); }
.menu-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--kz-surface); border: 1px solid var(--kz-line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 8px; font-size: 13px; cursor: pointer; text-align: left;
  color: inherit; text-decoration: none; box-sizing: border-box; font: inherit;
}
.menu-item.danger { color: var(--kz-error); }
.menu-item .chev { color: var(--kz-muted); flex-shrink: 0; margin-left: 0; }
.menu-item .mi-label { flex: 1; min-width: 0; }
.menu-end {
  margin-left: auto; color: var(--kz-muted); font-size: 12px; font-weight: 600;
  text-align: right; flex-shrink: 0;
}
.menu-end:empty { display: none; }

.row-item {
  width: calc(100% - (var(--kz-gutter) * 2)); margin: 0 var(--kz-gutter) 8px; display: flex; gap: 12px; align-items: center;
  background: var(--kz-surface); border: 1px solid var(--kz-line); border-radius: var(--kz-radius);
  padding: 12px 14px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  box-sizing: border-box;
}
.row-item.unread { border-color: var(--kz-primary); }
.row-item .avatar, .row-item img.avatar, .row-item > img {
  width: 48px; height: 48px; min-width: 48px; min-height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; background: var(--kz-primary-soft);
}
.row-item img.thumb {
  width: 48px; height: 48px; min-width: 48px; min-height: 48px; border-radius: 12px; object-fit: cover;
}
.row-item svg, .row-item svg.row-ico {
  width: 20px; height: 20px; min-width: 20px; min-height: 20px; color: var(--kz-primary); flex-shrink: 0;
}
.row-item .chev { margin-left: 0; color: var(--kz-muted); }
.list-wrap { display: block; }
.grow { flex: 1; min-width: 0; }
.grow strong, .row-item strong { display: block; font-size: 13px; }
.grow .muted { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--kz-muted); font-size: 12px; }
.pad { padding: 0 var(--kz-gutter) 16px; }
.feed-more { text-align: center; padding-top: 12px; padding-bottom: 28px; }
.feed-more-hint { font-size: 13px; opacity: .6; }
/* `.pad`'s padding-bottom: 16px otherwise wins over `.has-cta`'s 120px
   (same specificity, `.pad` defined later) whenever a screen combines
   both classes -- which was silently squashing the space kept clear for
   the sticky CTA button down to 16px. On the Sell form specifically that
   put the Parcel size dropdown right up against the "List item" button
   on mobile. Restated here at higher specificity so has-cta always wins
   when both are present. */
.scroll.has-cta.pad { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.top-row { display: flex; align-items: center; gap: 12px; padding: 12px var(--kz-gutter); min-height: 64px; }
.back-plain {
  background: none; border: 0; font-weight: 600; color: var(--kz-primary); cursor: pointer;
  display: flex; justify-content: flex-start; align-items: center; gap: 8px;
  padding: 12px var(--kz-gutter); width: 100%; box-sizing: border-box; text-align: left;
}
.back-plain svg, .back-ico { width: 18px; height: 18px; margin: 0; flex-shrink: 0; }

.splash { background: linear-gradient(165deg, #1c1410, #3a2418); color: #f6efe6; align-items: center; justify-content: center; gap: 8px; }
.splash-mark { width: 112px; height: 112px; border-radius: 0; overflow: visible; margin-bottom: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.28); background: transparent; }
.splash-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.splash h1 { font-family: var(--serif); font-size: 40px; font-style: italic; font-weight: 600; }
.splash p { color: #e8c9a8; }

.ob-art { height: 46%; background: var(--kz-primary-deep) center/cover no-repeat; }
.ob-body { padding: 22px 20px; flex: 1; display: flex; flex-direction: column; }
.ob-body h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; font-style: italic; margin-bottom: 8px; }
.ob-body p { color: var(--kz-muted); flex: 1; line-height: 1.5; }
.dots { display: flex; gap: 6px; margin-bottom: 12px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--kz-line); display: block; }
.dots i.on { background: var(--kz-primary); width: 16px; border-radius: 4px; }

.auth-body {
  padding: 20px 20px calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}
.word { font-family: var(--serif); font-size: 30px; font-weight: 600; font-style: italic; margin-bottom: 8px; color: var(--kz-primary); }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--kz-muted); }
.auth-foot button { background: none; border: 0; color: var(--kz-primary); font-weight: 600; cursor: pointer; }
.social { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.google-slot { display: flex; justify-content: center; min-height: 44px; }
.google-slot > div { margin: 0 auto !important; }

.bag-btn { position: relative; }
.bag-badge {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--kz-primary); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}

.page-title-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--kz-gutter) 8px; flex-shrink: 0; gap: 12px;
}

.cart-stack { padding: 0 0 24px; }
.cart-group { margin-bottom: 18px; }
.cart-group-label {
  padding: 4px var(--kz-gutter) 10px; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--kz-muted);
}
.cart-row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: start;
  padding: 12px var(--kz-gutter); border-bottom: 1px solid var(--kz-line); background: #fff;
}
.cart-row.is-dead { opacity: .62; }
.cart-thumb, .cart-title { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.cart-thumb .thumb, .cart-thumb img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; display: block; }
.cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-info strong { font-size: 14px; line-height: 1.3; }
.cart-price { font-weight: 700; font-size: 14px; color: var(--kz-ink); }
.cart-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-buy { padding: 8px 12px; font-size: 12px; }
.cart-totals { margin-top: 8px; }

.fav-stack { padding: 0 0 24px; }
.fav-row {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: start;
  padding: 12px var(--kz-gutter); border-bottom: 1px solid var(--kz-line); background: #fff;
}
.fav-row.is-dead { opacity: .62; }
.fav-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.fav-actions .kz-btn { padding: 8px 12px; font-size: 12px; min-height: 36px; }
.fav-unsave { color: var(--kz-primary); margin-top: 2px; }

.sticky-cta.item-cta { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }

.addr-map {
  height: 220px;
  border-radius: 16px;
  border: 1px solid var(--kz-line);
  overflow: hidden;
  margin-bottom: 4px;
  z-index: 1;
}
.addr-map .leaflet-container { height: 100%; width: 100%; font: inherit; }

.addr-suggest { position: relative; margin-bottom: 12px; }
.addr-suggest .kz-field { margin-bottom: 0; }
.addr-suggest-list {
  position: absolute; left: 0; right: 0; top: calc(100% - 2px); z-index: 20;
  background: #fff; border: 1px solid var(--kz-line); border-radius: 12px;
  box-shadow: 0 10px 28px rgba(28, 20, 16, 0.12); max-height: 220px; overflow-y: auto;
  padding: 4px;
}
.addr-suggest-item {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  font: inherit; color: var(--kz-ink); padding: 10px 12px; border-radius: 8px; cursor: pointer;
  line-height: 1.35; font-size: 14px;
}
.addr-suggest-item:hover, .addr-suggest-item:focus { background: var(--kz-primary-soft); outline: none; }

.steps { display: flex; gap: 4px; padding: 0 var(--kz-gutter) 14px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--kz-line); }
.steps i.on { background: var(--kz-primary); }
.photo-drop {
  height: 140px; border-radius: var(--kz-radius-lg); border: 1.5px dashed var(--kz-primary);
  background: var(--kz-primary-soft); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; color: var(--kz-primary-deep); margin-bottom: 14px; cursor: pointer; width: 100%;
}
/* Seller tips on the listing screen ("real photos", "price to sell").
   Quiet card that sits with the form fields: white surface, hairline
   border, flat line icon, serif heading like the rest of the app. */
.photo-notice {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px;
  padding: 13px 14px; border-radius: var(--kz-radius);
  background: var(--kz-surface); border: 1px solid var(--kz-line);
  color: var(--kz-ink);
}
.photo-notice-ico {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--kz-primary-soft); color: var(--kz-primary);
  display: grid; place-items: center;
}
.photo-notice-ico svg { width: 17px; height: 17px; }
.price-tip .photo-notice-ico { background: var(--kz-accent-soft); color: var(--kz-secondary); }
.photo-notice strong {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 15.5px; line-height: 1.3; color: var(--kz-ink); letter-spacing: -.01em;
}
.photo-notice p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--kz-muted); }
.photo-row { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.photo-row img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }

.pay-opt {
  display: flex; align-items: center; gap: 12px; background: var(--kz-surface);
  border: 1.5px solid var(--kz-line); border-radius: var(--kz-radius);
  padding: 14px 16px; cursor: pointer; text-align: left; width: 100%; margin: 0;
  font: inherit; color: inherit; box-sizing: border-box;
}
.pay-opt + .pay-opt { margin-top: 8px; }
.pay-opt:disabled { opacity: .55; cursor: not-allowed; }
.pay-opt.selected { border-color: var(--kz-primary); background: var(--kz-primary-soft); }
.pay-opt .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.pay-opt .info strong { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--kz-ink); }
.pay-opt .info .muted { font-size: 12px; line-height: 1.35; }
.pay-opt .fee {
  margin-left: auto; flex-shrink: 0; font-size: 14px; font-weight: 700;
  color: var(--kz-ink); white-space: nowrap;
}
.radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--kz-line); flex-shrink: 0; }
.pay-opt.selected .radio { border-color: var(--kz-primary); box-shadow: inset 0 0 0 4px var(--kz-primary); }

.checkout-stack {
  padding: 0 0 24px;
  display: flex; flex-direction: column; gap: 0;
}
.checkout-stack .section-head {
  padding: 18px var(--kz-gutter) 10px;
}
.checkout-stack .section-head h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 600; font-style: italic;
  color: var(--kz-ink); margin: 0;
}
.checkout-item {
  display: flex; gap: 14px; align-items: center;
  margin: 0 var(--kz-gutter); padding: 14px;
  background: var(--kz-surface); border: 1px solid var(--kz-line);
  border-radius: var(--kz-radius); box-sizing: border-box;
}
.checkout-item .thumb, .checkout-item img.thumb {
  width: 72px; height: 72px; min-width: 72px; border-radius: 12px; object-fit: cover;
  background: var(--kz-primary-soft);
}
.checkout-item .grow { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.checkout-item .grow strong { font-size: 15px; font-weight: 600; line-height: 1.35; }
.checkout-item .grow .muted { white-space: normal; font-size: 12px; line-height: 1.35; }
.checkout-item .checkout-price {
  display: block; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--kz-ink);
}
.checkout-row { cursor: pointer; }
.checkout-row .grow strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.checkout-row .grow .muted { white-space: normal; font-size: 12px; line-height: 1.4; }
.checkout-options { padding: 0 var(--kz-gutter); }
.support-note {
  margin: 18px var(--kz-gutter) 10px; padding: 12px 14px;
  background: var(--kz-primary-soft); border: 1px solid var(--kz-primary);
  border-left-width: 4px; border-radius: var(--kz-radius);
  color: var(--kz-ink); font-size: 14px; line-height: 1.5;
}
.support-note strong { display: block; margin-bottom: 2px; color: var(--kz-primary); }
.support-note a { color: var(--kz-primary); font-weight: 600; text-decoration: underline; }
.scroll.pad .support-note { margin-left: 0; margin-right: 0; }
.checkout-note {
  padding: 0 var(--kz-gutter) 10px; margin: 0; font-size: 13px; line-height: 1.45;
}
.checkout-totals {
  margin: 20px var(--kz-gutter) 0; padding: 16px;
  background: var(--kz-surface); border: 1px solid var(--kz-line);
  border-radius: var(--kz-radius);
}
.checkout-totals .line {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; font-size: 14px; color: var(--kz-ink2); margin-bottom: 10px;
}
.checkout-totals .line span:last-child { font-weight: 600; color: var(--kz-ink); }
.checkout-totals .line.grand {
  margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--kz-line);
  font-size: 16px; font-weight: 700; color: var(--kz-ink);
}
.checkout-totals .line.grand span:last-child { font-weight: 700; color: var(--kz-primary); }
.checkout-cta { grid-template-columns: 1fr; }

/* Seller listing fee preview (fixed + auction) — fees from bootstrap config */
.sell-fee-breakdown {
  margin: 4px 0 14px;
  padding: 12px 14px;
  background: var(--kz-primary-soft, #f3e4d8);
  border-radius: 12px;
  border: 1px solid var(--kz-line);
}
.sell-fee-breakdown[hidden] { display: none; }
.sell-fee-line {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; font-size: 13px; color: var(--kz-ink); margin-bottom: 6px;
}
.sell-fee-line span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sell-fee-muted { font-size: 12px; color: var(--kz-muted); }
.sell-fee-muted span:last-child { font-weight: 500; color: var(--kz-muted); }
.sell-fee-receive {
  margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--kz-line);
  font-size: 14px; font-weight: 700; color: var(--kz-ink);
}
.sell-fee-receive span:last-child { font-weight: 700; color: var(--kz-primary); }
.sell-fee-note {
  margin: 8px 0 0; font-size: 11px; line-height: 1.4; color: var(--kz-muted);
}

.phone-input {
  display: flex; align-items: stretch; width: 100%; box-sizing: border-box;
  border: 1px solid var(--kz-line);
  border-radius: 12px; overflow: hidden; background: #fff;
}
.phone-input:focus-within { border-color: var(--kz-primary); box-shadow: 0 0 0 3px var(--kz-primary-soft); }
.phone-prefix {
  display: flex; align-items: center; padding: 0 12px;
  background: var(--kz-primary-soft); color: var(--kz-primary-deep);
  font-weight: 700; font-size: 14px; border-right: 1px solid var(--kz-line);
  flex-shrink: 0; letter-spacing: .02em;
}
.phone-input .phone-local {
  border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  flex: 1; min-width: 0; padding: 12px 14px; font-size: 16px; font-weight: 600;
  letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.kz-phone-field .field-hint {
  display: block; margin-top: 6px; font-size: 12px; color: var(--kz-muted);
}
.kz-field input[inputmode="numeric"],
.kz-field input[data-digits] { font-variant-numeric: tabular-nums; }

.totals > div { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.grand { border-top: 1px solid var(--kz-line); margin-top: 8px; padding-top: 8px; font-weight: 700; }

.filter-chips { display: flex; gap: 6px; padding: 0 var(--kz-gutter) 12px; padding-right: calc(var(--kz-gutter) + 28px); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter-chip { flex-shrink: 0; border: 1px solid var(--kz-line); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 12px; cursor: pointer; }
.filter-chip.on { background: var(--kz-primary); color: #fff; border-color: var(--kz-primary); }

.success { justify-content: center; }
.success-body { padding: 24px; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.check { width: 64px; height: 64px; border-radius: 50%; background: var(--kz-primary); color: #fff; display: grid; place-items: center; font-size: 28px; margin: 0 auto 8px; }
.success-body h2 { font-family: var(--serif); font-size: 26px; font-weight: 400; }

#overlay { position: absolute; inset: 0; background: rgba(28,20,16,.4); display: none; align-items: center; justify-content: center; z-index: 60; }
#overlay.show { display: flex; }
#overlay.loc-ask-open {
  background:
    radial-gradient(ellipse 80% 50% at 50% 35%, rgba(196,92,38,.18), transparent 60%),
    rgba(28,20,16,.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px 16px;
}

/* Image lightbox (chat photos): tap to zoom, drag to pan, scroll to zoom. */
#overlay.img-lightbox-open { background: rgba(10,8,6,.94); }
.img-lightbox { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.lightbox-img { max-width: 92vw; max-height: 86vh; object-fit: contain; cursor: zoom-in; transition: transform .15s ease-out; user-select: none; -webkit-user-drag: none; touch-action: none; }
.lightbox-img.zoomed { cursor: grab; transition: none; }
.lightbox-close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; background: rgba(0,0,0,.5); color: #fff; z-index: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.5); color: #fff; z-index: 1; }
.lightbox-nav svg { width: 20px; height: 20px; color: #fff; margin: 0; }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-dots { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 1; }
.lightbox-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); display: block; }
.lightbox-dots i.on { background: #fff; width: 16px; border-radius: 4px; }
.sheet { background: #fff; width: 100%; max-width: 480px; border-radius: 22px 22px 0 0; padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); margin-top: auto; animation: up .35s var(--kz-ease); }
@keyframes up { from { transform: translateY(24px); opacity: .5; } }
.sheet h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin-bottom: 12px; }

.loc-ask {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: auto;
  padding: 28px 24px 20px;
  text-align: center;
  background:
    linear-gradient(165deg, #fffdf9 0%, #faf6f1 55%, #f3e4d8 140%);
  border: 1px solid rgba(234,223,212,.95);
  border-radius: 24px;
  box-shadow:
    0 24px 60px rgba(28,20,16,.22),
    0 0 0 1px rgba(255,255,255,.5) inset;
  animation: loc-pop .42s var(--kz-ease);
  overflow: hidden;
}
@keyframes loc-pop {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.loc-ask-glow {
  position: absolute; inset: -40% -20% auto;
  height: 140px;
  background: radial-gradient(ellipse at center, rgba(196,92,38,.14), transparent 70%);
  pointer-events: none;
}
.loc-ask-icon {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #f7ead8, #f3e4d8);
  color: var(--kz-primary);
  box-shadow: 0 10px 24px rgba(196,92,38,.2);
  position: relative;
}
.loc-ask-icon svg { width: 28px; height: 28px; }
.loc-ask-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--kz-primary); margin-bottom: 8px;
}
.loc-ask h3 {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 26px; line-height: 1.2; color: var(--kz-ink); margin: 0 0 10px;
}
.loc-ask-copy {
  font-size: 14px; line-height: 1.5; color: var(--kz-ink2); margin: 0 0 10px;
}
.loc-ask-fine {
  font-size: 12px; line-height: 1.45; color: var(--kz-muted); margin: 0 0 20px;
}
.loc-ask-ok { margin-bottom: 4px; }
/* fix6: blocked-location help steps */
.loc-help { text-align: left; max-height: calc(100vh - 32px); overflow-y: auto; }
.loc-help .loc-ask-icon, .loc-help .loc-ask-kicker, .loc-help h3 { text-align: center; margin-left: auto; margin-right: auto; }
.loc-help-steps { margin: 4px 0 12px 20px; padding: 0; font-size: 14px; line-height: 1.55; color: var(--kz-ink); }
.loc-help-steps li { margin-bottom: 6px; padding-left: 2px; }
.loc-help .loc-ask-copy { text-align: center; }
/* 20260926: 3rd location card — "Type your address instead" with a small
   looping demo: type → the list drops down → tap → the pin drops on the map. */
.loc-teach-card { padding-top: 24px; }
.loc-teach-card h3 { font-size: 24px; margin-bottom: 14px; }
.loc-teach { position: relative; height: 168px; margin: 0 auto 14px; max-width: 280px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--kz-line); background: #fff; text-align: left; }
.lt-map { position: absolute; inset: 0; background: #f4efe7; }
.lt-road { position: absolute; background: #fff; border: 1px solid #ebe1d4; }
.lt-r1 { left: -10px; right: -10px; top: 92px; height: 14px; transform: rotate(-6deg); }
.lt-r2 { top: -10px; bottom: -10px; left: 150px; width: 12px; transform: rotate(8deg); }
.lt-r3 { top: 128px; left: -10px; width: 170px; height: 10px; }
.lt-block { position: absolute; background: #e9ddcd; border-radius: 4px; }
.lt-b1 { left: 30px; top: 112px; width: 46px; height: 14px; }
.lt-b2 { left: 186px; top: 60px; width: 40px; height: 26px; }
.lt-pin { position: absolute; left: 132px; top: 70px; width: 30px; height: 30px; color: var(--kz-primary); opacity: 0;
  animation: lt-pin 6s infinite; }
.lt-pin svg { width: 30px; height: 30px; fill: #fff; filter: drop-shadow(0 3px 4px rgba(196,92,38,.35)); }
.lt-pin-shadow { position: absolute; left: 140px; top: 98px; width: 14px; height: 5px; border-radius: 50%; background: rgba(28,20,16,.22); opacity: 0;
  animation: lt-shadow 6s infinite; }
.lt-input { position: absolute; left: 10px; right: 10px; top: 10px; height: 34px; border-radius: 10px; background: #fff;
  border: 1.5px solid var(--kz-primary); display: flex; align-items: center; padding: 0 10px; font-size: 12.5px; color: var(--kz-ink);
  box-shadow: 0 4px 12px rgba(28,20,16,.08); white-space: nowrap; overflow: hidden; }
.lt-type { display: inline-block; overflow: hidden; width: 0; animation: lt-type 6s steps(23, end) infinite; }
.lt-caret { display: inline-block; width: 1.5px; height: 15px; background: var(--kz-primary); margin-left: 1px; animation: lt-caret .8s step-end infinite; }
.lt-drop { position: absolute; left: 10px; right: 10px; top: 48px; background: #fff; border-radius: 10px; border: 1px solid var(--kz-line);
  box-shadow: 0 8px 20px rgba(28,20,16,.12); overflow: hidden; opacity: 0; transform: translateY(-6px); animation: lt-drop 6s infinite; }
.lt-opt { display: flex; align-items: center; gap: 6px; padding: 7px 9px; font-size: 11.5px; color: var(--kz-ink2); }
.lt-opt + .lt-opt { border-top: 1px solid var(--kz-line); }
.lt-opt svg { width: 13px; height: 13px; color: var(--kz-primary); flex: none; }
.lt-opt1 { animation: lt-opt 6s infinite; }
.lt-finger { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: rgba(196,92,38,.28); border: 2px solid rgba(196,92,38,.7);
  left: 210px; top: 150px; opacity: 0; animation: lt-finger 6s infinite; }
.lt-steps { margin: 0 0 16px 20px; padding: 0; font-size: 13.5px; line-height: 1.5; color: var(--kz-ink); text-align: left; }
.lt-steps li { margin-bottom: 4px; }
.loc-teach-card .loc-ask-ok[disabled] { opacity: .55; cursor: not-allowed; }
@keyframes lt-type { 0% { width: 0; } 30%, 100% { width: 100%; } }
@keyframes lt-caret { 50% { opacity: 0; } }
@keyframes lt-drop { 0%, 31% { opacity: 0; transform: translateY(-6px); } 36%, 54% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes lt-opt { 0%, 44% { background: #fff; } 46%, 56% { background: #f3e4d8; color: var(--kz-ink); } 100% { background: #fff; } }
@keyframes lt-finger { 0%, 34% { opacity: 0; left: 210px; top: 150px; transform: scale(1); }
  38% { opacity: 1; } 44% { left: 60px; top: 50px; transform: scale(1); } 47% { transform: scale(.75); } 50% { transform: scale(1); left: 60px; top: 50px; opacity: 1; }
  56%, 100% { opacity: 0; left: 60px; top: 50px; } }
@keyframes lt-pin { 0%, 57% { opacity: 0; transform: translateY(-60px); } 64% { opacity: 1; transform: translateY(0); } 68% { transform: translateY(-8px); }
  72%, 96% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; } }
@keyframes lt-shadow { 0%, 60% { opacity: 0; } 66%, 96% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .lt-type { animation: none; width: 100%; }
  .lt-drop, .lt-finger, .lt-caret { animation: none; }
  .lt-pin, .lt-pin-shadow { animation: none; opacity: 1; }
}
.sheet-row { width: 100%; text-align: left; padding: 12px; border: 1px solid var(--kz-line); background: #fff; border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.sheet-row.on { border-color: var(--kz-primary); background: var(--kz-primary-soft); }

.tabs { display: flex; gap: 8px; padding: 0 var(--kz-gutter) 12px; }
.tab { border: 0; background: var(--kz-surface); border: 1px solid var(--kz-line); border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 600; cursor: pointer; }
.tab.on { background: var(--kz-primary); color: #fff; border-color: var(--kz-primary); }

.share-row { display: flex; gap: 8px; margin-top: 12px; }
.share-row .kz-icon-btn { width: 44px; height: 44px; }
.loc-split { display: block; }
.loc-card { background: #fff; border: 1px solid var(--kz-line); border-radius: 16px; padding: 14px; margin: 0 var(--kz-gutter) 12px; }
.loc-row { display: flex; gap: 12px; align-items: flex-start; }
.pin { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 8px; border-radius: 8px; background: var(--kz-primary-soft); color: var(--kz-primary); flex-shrink: 0; }
.fake-map {
  position: relative; height: 180px; border-radius: 16px; overflow: hidden;
  margin: 0 var(--kz-gutter) 14px;
  background:
    linear-gradient(#d7ead4 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, #d7ead4 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(160deg, #cfe6cc 0%, #e8f0d8 40%, #f3ead8 100%);
  border: 1px solid var(--kz-line);
}
.fake-map .road { position: absolute; background: #f4efe6; }
.fake-map .road.h { height: 10px; left: 0; right: 0; top: 48%; }
.fake-map .road.v { width: 10px; top: 0; bottom: 0; left: 38%; }
.map-pin { position: absolute; transform: translate(-50%, -100%); z-index: 2; text-align: center; }
.map-pin i {
  display: block; width: 22px; height: 22px; margin: 0 auto; border-radius: 50% 50% 50% 0;
  background: var(--kz-primary); transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(0,0,0,.18);
}
.map-pin span {
  display: block; margin-top: 6px; font-size: 10px; font-weight: 700; color: var(--kz-ink);
  background: #fff; border-radius: 8px; padding: 3px 7px; white-space: nowrap;
}
.reason-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.reason-chip {
  border: 1.5px solid var(--kz-line); background: #fff; border-radius: 999px;
  padding: 8px 12px; font: inherit; font-size: 12px; cursor: pointer;
}
.reason-chip.on { border-color: var(--kz-primary); background: var(--kz-primary-soft); color: var(--kz-primary); font-weight: 600; }
.info { flex: 1; min-width: 0; }
.info strong { display: block; font-size: 13px; }
.chev { width: 18px; height: 18px; color: var(--kz-muted); margin-left: auto; flex-shrink: 0; }
.fine { font-size: 11px; color: var(--kz-muted); text-align: center; margin-top: 10px; }
.err { color: var(--kz-error); font-size: 12px; margin-bottom: 10px; }
.method-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
@media (min-width: 600px) {
  .method-grid { grid-template-columns: repeat(3, 1fr); }
}
.preview-card { background: #fff; border: 1px solid var(--kz-line); border-radius: var(--kz-radius); overflow: hidden; }

@media (max-width: 380px) {
  :root { --kz-gutter: 12px; }
  .city-btn b { font-size: 20px; }
  .nav-item { font-size: 8px; }
  .bottom-nav { left: 8px; right: 8px; padding: 8px 4px 10px; }
}
@media (max-width: 599px) {
  .gallery { height: min(52vh, 380px); }
  .sticky-cta.triple { grid-template-columns: 1fr 1fr; }
  .sticky-cta.triple .kz-btn-ghost { grid-column: 1 / -1; }
  .title, .detail-body h2 { overflow-wrap: anywhere; }
  .price-lg { white-space: normal; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .grid-2 { grid-template-columns: repeat(3, 1fr); }
  .hero-carousel { height: 340px; }
}
@media (min-width: 900px) {
  :root { --kz-gutter: 32px; }
  .desk-nav:not([hidden]) {
    display: flex; align-items: center; gap: 12px; padding: 12px 24px;
    background: #fff; border-bottom: 1px solid var(--kz-line); z-index: 50; flex-wrap: wrap;
  }
  .desk-nav .logo { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; flex-shrink: 0; }
  .desk-nav .logo.desk-brand { flex-direction: row; align-items: center; gap: 0; min-width: 0; }
  .desk-nav .logo .kz-wordmark { font-size: 28px; }
  .desk-search {
    flex: 1 1 240px; min-width: 160px; max-width: 520px; height: 44px;
    display: flex; align-items: center; gap: 10px;
    background: var(--kz-bg); border: 1px solid var(--kz-line); border-radius: 12px;
    padding: 0 14px; color: var(--kz-muted);
  }
  .desk-search:focus-within { border-color: var(--kz-primary); background: #fff; }
  .desk-search svg { width: 18px; height: 18px; flex-shrink: 0; }
  .desk-search input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; color: var(--kz-ink); font: inherit; font-size: 16px; }
  .desk-links { margin-left: auto; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
  .desk-links button { border: 0; background: transparent; font-weight: 600; font-size: 13px; cursor: pointer; padding: 8px 10px; border-radius: 10px; color: var(--kz-ink2); }
  .desk-links button:hover { background: var(--kz-primary-soft); }
  .desk-links .sell { background: var(--kz-primary); color: #fff; }
  .bottom-nav { display: none; }
  .mob-only { display: none !important; }
  .has-nav { padding-bottom: 32px; }
  .status-bar, .home-head { display: none; }
  .grid-2 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .content-rail .grid-2 { padding-bottom: 16px; }
  .search-bar, .menu-list, .pad, .top-row, .stats, .profile-hero, .loc-card,
  .tabs, .track, .filter-chips, .list-wrap, .steps { max-width: 1280px; margin-left: auto; margin-right: auto; width: 100%; }
  .page-title { width: 100%; padding-left: var(--kz-gutter); padding-right: var(--kz-gutter); padding-top: 20px; }
  .back-plain { max-width: 1280px; width: 100%; margin: 0 auto; justify-content: flex-start; }

  .list-wrap {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px; padding: 0 var(--kz-gutter) 32px; align-content: start;
  }
  .list-wrap > .order-card, .list-wrap > .row-item { margin: 0; max-width: none; width: 100%; }
  .list-wrap > .kz-empty { grid-column: 1 / -1; }

  .menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; padding-bottom: 32px; }
  .menu-item { margin-bottom: 0; padding: 16px 18px; }

  .kz-field, .pad > .err, .reason-row { max-width: 680px; }
  .pad > .totals, .pay-opt { max-width: none; width: 100%; }
  .pad > .kz-btn.full { max-width: none; width: 100%; }

  .loc-split {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px;
    max-width: 1280px; margin: 0 auto; padding: 0 var(--kz-gutter) 32px; align-items: start;
  }
  .loc-split .fake-map { margin: 0; height: 100%; min-height: 340px; }
  .loc-split .pad { padding: 0; max-width: none; }
  .loc-split .kz-field, .loc-split .kz-btn.full { max-width: none; }

  .screen.chat-screen { height: 100%; }
  .chat-screen .chat-head, .chat-screen .chat-thread, .chat-screen .chat-input, .chat-screen .chat-locked-note {
    max-width: none; width: 100%; margin: 0;
  }
  .chat-screen .chat-head { border-radius: 0; margin-top: 0; border-left: 0; border-right: 0; }
  .chat-screen .chat-thread { border-left: 0; border-right: 0; }
  .chat-screen .chat-input, .chat-screen .chat-locked-note { border-radius: 0; margin-bottom: 0; border-left: 0; border-right: 0; }
  .chat-screen .chat-bubble { max-width: min(62%, 640px); }
  .hero-carousel { height: 480px; }
  .search-bar { margin: 16px auto 12px; }
  .item-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); width: 100%; max-width: 1280px; margin: 0 auto; padding: 16px var(--kz-gutter) 0; gap: 28px; align-items: start; }
  /* Keep "Similar products" aligned to the same 1280px column as the
     product details above it instead of stretching edge-to-edge on wide
     screens. */
  .item-screen .grid-2 { max-width: 1280px; margin-inline: auto; }
  .item-split .gallery { height: 100%; min-height: 420px; max-height: 70vh; border-radius: 16px; overflow: hidden; }
  .item-split .back-fab, .item-split .fav-fab, .item-split .heart-br { top: auto; }
  .sticky-cta { position: static; max-width: 1280px; margin: 0 auto; padding: 16px var(--kz-gutter) 32px; background: none; width: 100%; }
  .has-cta { padding-bottom: 24px; }
  .order-card, .row-item {
    width: calc(100% - (var(--kz-gutter) * 2));
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  .track { padding-left: var(--kz-gutter); padding-right: var(--kz-gutter); }
  .success-body { max-width: 520px; margin: 0 auto; }
  .sheet { border-radius: 22px; margin-bottom: 10vh; }
  .screen.auth { align-items: center; justify-content: center; }
  .auth-body { max-width: 420px; width: 100%; margin: auto; background: #fff; border: 1px solid var(--kz-line); border-radius: 20px; padding: 36px 40px; box-shadow: 0 16px 48px rgba(28,20,16,.08); }
  .screen.onboard { max-width: 480px; margin: 0 auto; width: 100%; border-left: 1px solid var(--kz-line); border-right: 1px solid var(--kz-line); }
  .kz-toast { bottom: 32px; }
}
@media (min-width: 1100px) {
  .grid-2 { grid-template-columns: repeat(4, 1fr); }
  .menu-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desk-nav:not([hidden]) { flex-wrap: nowrap; padding: 12px 32px; }
  .desk-links button { font-size: 14px; padding: 8px 12px; }
}
@media (min-width: 1280px) {
  .grid-2 { grid-template-columns: repeat(5, 1fr); }
}

/* Client feedback — Aug 2026 (ported from ~/klozat ui) */
.home-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.home-city-only { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--kz-muted); font-weight: 600; line-height: 1.2; }
.kz-wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  color: var(--kz-primary);
  letter-spacing: -0.01em;
}
.desk-brand { display: flex; flex-direction: row; align-items: center; gap: 0; text-align: left; }
.desk-brand .home-city-only { font-size: 9px; line-height: 1.1; white-space: nowrap; }
.desk-brand .kz-wordmark { font-size: 28px; }
.browse-head { display: grid; grid-template-columns: 40px 1fr 64px; align-items: center; gap: 8px; padding: 8px var(--kz-gutter); flex-shrink: 0; }
.browse-title { margin: 0; text-align: center; font-size: 18px; }
.browse-head .search-bar.browse-search { margin: 0; min-height: 40px; }
.browse-head .search-bar.browse-search input { height: 40px; }
.menu-switch { cursor: default; pointer-events: auto; }
.menu-switch .kz-switch { pointer-events: auto; }
.kz-switch {
  width: 46px; height: 28px; border-radius: 999px; border: 1px solid var(--kz-line);
  background: #e8dfd6; padding: 3px; cursor: pointer; position: relative; flex-shrink: 0;
}
.kz-switch i { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); transition: transform .2s; }
.kz-switch.on { background: var(--kz-primary); border-color: var(--kz-primary); }
.kz-switch.on i { transform: translateX(18px); }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0; }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; border-radius: 16px; border: 1px solid var(--kz-line); background: #fff; text-align: left; cursor: pointer; }
.cat-tile:hover, .cat-tile:focus { border-color: var(--kz-primary); }
.cat-tile-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--kz-primary-soft); color: var(--kz-primary); flex-shrink: 0; }
.cat-tile-icon svg { width: 22px; height: 22px; }
.cat-tile-name { font-family: var(--serif); font-style: italic; font-size: 20px; font-weight: 600; }
.you-hero img.avatar, .seller-hero img.avatar,
.you-hero .avatar, .seller-hero .avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; }
.avatar-zoomable { cursor: zoom-in; }
.avatar-pick { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.avatar-pick img.avatar, .avatar-pick .avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-pick .kz-btn { flex: 0 1 auto; min-width: 0; }
.avatar-pick.stack { flex-direction: column; align-items: center; gap: 12px; margin-bottom: 20px; }
.avatar-pick.stack .kz-btn { flex: none; }
.seller-city-row { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13px; color: var(--kz-muted); margin-bottom: 4px; flex-wrap: wrap; }
.follow-btn { margin-top: 12px; min-width: 120px; }
.seller-report-btn {
  margin: 6px auto 0; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; font-size: 13px; font-weight: 600; color: var(--kz-muted); cursor: pointer; padding: 4px 8px;
}
.seller-report-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.seller-report-btn:hover, .seller-report-btn:active { color: var(--kz-danger, #c0392b); }
.boost-banner { margin: 0 var(--kz-gutter) 12px; padding: 12px 14px; border-radius: 14px; background: var(--kz-primary-soft); border: 1px solid var(--kz-line); display: flex; flex-direction: column; gap: 2px; }
.legal-links {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 0 8px; font-size: 12px; color: var(--kz-muted);
}
.legal-links button, .legal-links a { background: none; border: 0; color: var(--kz-primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  /* 44px is the minimum comfortable touch target; these were 14px tall. */
  min-height: 44px; padding: 0 6px; display: inline-flex; align-items: center; }
.inbox-sub { display: block; font-size: 11px; color: var(--kz-primary); margin-top: 2px; font-weight: 600; }
.subtotal-note, .postage-note { font-size: 12px; margin: 4px 0 0; }
.price-protect-line {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  margin: 6px 0 0; font-size: 13px; line-height: 1.3;
}
.price-protect-line svg { width: 15px; height: 15px; flex: none; color: var(--kz-success); }
.price-protect-line b { font-weight: 700; color: var(--kz-success); }
.price-protect-line span { font-weight: 600; color: var(--kz-success); }
.price-protect-line i { font-style: normal; font-weight: 500; color: var(--kz-muted); font-size: 12px; }
.safety-box, .policy-box { margin: 16px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--kz-line); background: #fff; }
.safety-box strong, .policy-box strong { display: block; margin-bottom: 6px; }
.defect-box { margin: 16px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--kz-error-soft); background: var(--kz-error-soft); }
.defect-box strong { display: block; margin-bottom: 6px; color: var(--kz-error); }
.defect-box p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--kz-ink, #201a14); white-space: pre-wrap; }
/* Required-field marker next to a kz-field label, e.g. "Any defect? *". */
.req { color: var(--kz-error); font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; color: var(--kz-primary); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; margin-top: 8px; }
.heart-br { position: absolute; right: 12px; bottom: 12px; top: auto; left: auto; }
.gallery .heart-br { width: 44px; height: 44px; }
.safety-banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; margin: 0 var(--kz-gutter) 8px; border-radius: 12px; border: 1px solid var(--kz-line); background: #fff8f2; font-size: 12px; line-height: 1.45; flex-shrink: 0; }
.safety-banner .kz-icon-btn { flex-shrink: 0; width: 44px; height: 44px; font-size: 14px; }
.chat-bubble.image { padding: 4px; background: transparent !important; border: 0 !important; }
.chat-bubble.image img { max-width: 200px; border-radius: 12px; display: block; }
.chat-img { cursor: zoom-in; }
.chat-bubble.uploading { opacity: .9; }
.chat-img-wrap { position: relative; display: inline-block; }
.chat-bubble.uploading .chat-img { filter: brightness(.7); cursor: default; }
.chat-img-spinner { position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: kz-spin .8s linear infinite; }
@keyframes kz-spin { to { transform: rotate(360deg); } }
.chat-bubble.offer { border-color: var(--kz-primary); }
.chat-bubble.offer .offer-status {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #7a6a5c;
}
.chat-bubble.offer .offer-status.accepted { color: var(--kz-primary); font-weight: 600; }
.chat-bubble.offer .offer-status.declined { color: #8a4a3a; }
.offer-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.offer-actions .kz-btn {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-size: 13px;
}
.item-screen > .item-top-row {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(28, 20, 16, 0.06);
}
.item-screen > .item-top-row .page-h {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* "Similar products" heading — the base .section-head rule has zero
   horizontal padding (relies on a wrapping context like .home-stack to set
   it), but the item screen doesn't wrap this section in one, so the
   heading sat flush against the screen edge while the card grid beneath it
   (.grid-2, which pads itself) did not. Align them. */
.item-screen .section-head { padding-inline: var(--kz-gutter); }

.review-list { padding: 0 var(--kz-gutter) 24px; display: flex; flex-direction: column; gap: 10px; }
.review-card { padding: 14px; border-radius: 14px; border: 1px solid var(--kz-line); background: #fff; }
.review-card .top { display: flex; gap: 12px; align-items: flex-start; }
.review-card .top img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.review-card .grow { flex: 1; min-width: 0; }
.review-card p { margin: 6px 0 4px; font-size: 13px; line-height: 1.45; }
.seller-tabs { margin-top: 0; }
.seller-screen .seller-scroll { flex: 1; min-height: 0; }
.seller-rail { padding-top: 8px; padding-bottom: 32px; }
.seller-rail .seller-back { margin: 0 0 8px; padding-left: 0; width: auto; max-width: none; }
.seller-rail .boost-banner { margin: 0 0 12px; }
.seller-rail .seller-tabs { max-width: none; width: 100%; padding-inline: 0; margin: 0 0 12px; }
.seller-rail .profile-hero { max-width: none; width: 100%; padding-inline: 0; }
.seller-panel { width: 100%; }
.seller-rail .review-list { padding: 0; }
.seller-rail .seller-about { padding: 0; }
.seller-rail .seller-about .desc { margin-top: 0; }
.seller-about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 14px; }
.seller-about-stats .interest-stat { padding: 10px 6px; gap: 0; flex-direction: column; text-align: center; }
.seller-about-stats .interest-ico { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 6px; }
.seller-about-stats .interest-ico svg { width: 15px; height: 15px; }
.seller-about-stats .interest-copy { align-items: center; text-align: center; }
.seller-about-stats .interest-copy strong { font-size: 16px; }
.seller-about-stats .interest-copy span { font-size: 9.5px; }
.seller-about-note { margin-top: 0; }
.seller-about-note strong { font-family: var(--serif); font-size: 15px; }
.seller-about-note p { margin-top: 4px; }
.cat-editor { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.cat-editor .row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.hidden-file { position: absolute; width: 0; height: 0; opacity: 0; }

/* ------------------------------------------------------------------------
   Featured shelf, Sold/Featured badges, Browse filter bar, Referral card
   (25 Sep 2026). Terracotta selection, no gradients.
   ------------------------------------------------------------------------ */
.kz-badge-featured { background: var(--kz-primary); color: #fff; }
.kz-badge-sold { background: var(--kz-ink, #1c1410); color: #fff; }
.kz-badge-new { background: var(--kz-surface, #fff); color: var(--kz-primary); }
/* End of the Home feed (Recommended): what to do next. */
.feed-end { padding: 28px 16px 36px; }
.feed-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.featured-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 10px) / 2.15);
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding: 0 0 16px;
}
.featured-rail::-webkit-scrollbar { display: none; }
.featured-cell { scroll-snap-align: start; min-width: 0; }
.featured-cell > .card-item { width: 100%; }
@media (min-width: 900px) {
  .featured-rail { grid-auto-columns: calc((100% - 40px) / 5); }
}
.filter-bar { display: flex; gap: 8px; padding: 0 0 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0; border: 1px solid var(--kz-line); background: var(--kz-surface); color: var(--kz-ink2);
  border-radius: 999px; padding: 8px 14px; min-height: 44px; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
}
.filter-chip span { font-size: 10px; opacity: .7; }
.filter-chip.on { background: var(--kz-primary); border-color: var(--kz-primary); color: #fff; }
.filter-chip.clear { border-style: dashed; color: var(--kz-primary); }
.field-error { color: var(--kz-error, #b3261e); font-size: 13px; margin: 0 0 10px; }
/* The one field a validation error is about (fieldErr in customer.js). */
.kz-field.is-invalid > span { color: var(--kz-error); }
.kz-field.is-invalid input:not([type="hidden"]):not(.phone-local),
.kz-field.is-invalid select,
.kz-field.is-invalid textarea,
.kz-field.is-invalid .phone-input,
.kz-field.is-invalid .reason-chip,
.photo-drop.is-invalid {
  border-color: var(--kz-error) !important;
  box-shadow: 0 0 0 3px var(--kz-error-soft);
}
.kz-field.is-invalid .field-hint { display: none; }
.field-error[data-inline] { margin: 6px 0 10px; font-size: 12.5px; }
.kz-field > .field-error[data-inline] { margin-bottom: 0; }
.ref-card { background: var(--kz-primary-soft, #f3e4d8); border-radius: 16px; padding: 16px; }
.ref-code {
  font-family: var(--serif); font-style: italic; font-size: 30px; letter-spacing: .06em;
  color: var(--kz-primary); word-break: break-all;
}

/* Home Filter button + dialog (25 Sep 2026) */
.home-filter-btn { position: relative; }
.home-filter-btn.on { color: var(--kz-primary); border-color: var(--kz-primary); }
.home-filter-btn .filter-count {
  position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--kz-primary); color: #fff; font-size: 10px; font-style: normal; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.hf-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--kz-ink2); margin: 14px 0 8px; }
.hf-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-row .filter-chip { min-height: 40px; }
.hf-dialog + .kz-btn { margin-top: 16px; }

/* How Klozat works — home card + #howto page */
.howto-card { position: relative; margin: 0 0 14px; background: var(--kz-primary-soft, #f3e4d8); border-radius: 18px; display: flex; align-items: stretch; }
.howto-go { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 40px 12px 12px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.howto-play { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--kz-primary, #c45c26); color: #fff; display: grid; place-items: center; }
.howto-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.howto-txt b { font-size: 15px; }
.howto-txt small { font-size: 12.5px; opacity: .75; line-height: 1.25; }
.howto-x { position: absolute; top: 4px; right: 6px; width: 32px; height: 32px; border: 0; background: none; font-size: 22px; line-height: 1; color: inherit; opacity: .55; cursor: pointer; }
.howto-page { display: flex; flex-direction: column; gap: 16px; }
.howto-video { width: 100%; max-height: 70vh; border-radius: 18px; background: #000; aspect-ratio: 9 / 16; object-fit: contain; }
.howto-points { list-style: none; display: grid; gap: 10px; }
.howto-points li { background: #fff; border: 1px solid var(--kz-line, #eadfd4); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.4; }
.howto-points b { display: block; margin-bottom: 2px; }
.howto-cta { display: grid; gap: 10px; }

/* Language picker (Profile → Language sheet) */
.kz-lang-picker { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.kz-lang-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--kz-line, #eadfd4); background: #fff;
  font: inherit; color: inherit; cursor: pointer; text-align: start;
}
.kz-lang-opt.on { border-color: var(--kz-primary, #c45c26); background: var(--kz-primary-soft, #f3e4d8); }
.kz-lang-native { font-size: 16px; font-weight: 600; }
.kz-lang-en { font-size: 13px; opacity: .65; }

/* RTL — Urdu / Punjabi (KZi18n toggles body.kz-rtl) */
body.kz-rtl {
  font-family: "Noto Nastaliq Urdu", var(--sans, "Outfit"), system-ui, sans-serif;
}

/* Language switch — Home header (phone) + desktop nav */
.home-lang-btn { width: auto; min-width: 44px; padding: 0 10px; gap: 4px; display: inline-flex; align-items: center; justify-content: center; }
.home-lang-btn .lang-short { font-size: 12px; font-weight: 600; line-height: 1; }
.desk-lang { display: inline-flex; align-items: center; gap: 6px; }
.desk-lang .lang-short { font-weight: 600; }

/* RTL arrows: back / row chevrons point the reading direction. The hero
   carousel keeps an LTR track (translateX math + swipe) with RTL text inside. */
html[dir=rtl] .back-ico,
html[dir=rtl] .chev { transform: scaleX(-1); }
html[dir=rtl] .hero-carousel { direction: ltr; }
html[dir=rtl] .hero-slide .overlay { direction: rtl; }
/* Photo lightbox stays LTR (prev on the left, swipe math) — don't flip its arrows. */
html[dir=rtl] .lightbox-nav .back-ico,
html[dir=rtl] .lightbox-nav .chev { transform: none; }

/* Count badges (Inbox nav, Bag, Filter) — 18 Oct 2026: were 9–10px and hard
   to read. One size everywhere, Outfit digits (Nastaliq makes them tiny in
   ur/pa), white ring so the badge separates from the icon. */
.nav-item .badge,
.bag-badge,
.home-filter-btn .filter-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  font-family: var(--sans, "Outfit"), system-ui, sans-serif; font-size: 12px; font-weight: 700;
  font-style: normal; line-height: 1; letter-spacing: 0;
  box-shadow: 0 0 0 2px var(--kz-bg, #faf6f1);
}
.nav-item .badge { top: -5px; right: -6px; }
.bag-badge, .home-filter-btn .filter-count { top: 0; right: 0; }
html[dir=rtl] .nav-item .badge { right: auto; left: -6px; }
html[dir=rtl] .bag-badge, html[dir=rtl] .home-filter-btn .filter-count { right: auto; left: 0; }

/* Card / status badges (Sold, New, Featured, Auction…) */
.kz-badge { font-size: 11px; padding: 5px 9px; }
body.kz-rtl .kz-badge { font-size: 13px; letter-spacing: 0; text-transform: none; padding: 3px 10px; line-height: 1.7; }
/* Unread-alerts dot on the bell (was an inline 7px dot) */
.kz-icon-btn[data-go="notifs"] { position: relative; }
.notif-dot {
  position: absolute; top: 6px; right: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--kz-primary); box-shadow: 0 0 0 2px var(--kz-bg, #faf6f1);
}
html[dir=rtl] .notif-dot { right: auto; left: 6px; }
/* Bottom-nav badge was clipped at the top: the item clipped its overflow
   for long labels. Let the badge sit outside; only the label truncates. */
.nav-item { overflow: visible; }
.nav-item > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Home polish (20 Oct 2026): products closer to the top, quieter chrome, firmer contrast.
   Palette unchanged. Everything here is an override; delete this block to go back. ---- */
.offer-whisper { margin-top: 6px; font-size: 11px; line-height: 1.35; color: var(--kz-muted); }
.offer-tip { grid-column: 1 / -1; font-size: 12px; line-height: 1.3; color: var(--kz-muted); text-align: center; margin-bottom: -2px; }

.howto-card { margin: 0 0 8px; border-radius: 14px; }
.howto-go { gap: 10px; padding: 8px 40px 8px 10px; }
.howto-play { width: 32px; height: 32px; }
.howto-play svg { width: 16px; height: 16px; }
.howto-txt b { font-size: 14px; }
.howto-txt small { font-size: 12px; line-height: 1.3; }
.howto-x { top: 50%; transform: translateY(-50%); }

.offer-strip { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 8px 40px 8px 10px; border-radius: 14px; background: var(--kz-accent-soft); color: var(--kz-ink2); }
.offer-strip-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--kz-primary); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }
.offer-strip-txt { font-size: 13px; font-weight: 500; line-height: 1.3; min-width: 0; }
.offer-strip-x { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 6px; width: 32px; height: 32px; border: 0; background: none; font-size: 22px; line-height: 1; color: inherit; opacity: .55; cursor: pointer; }

.home-stack .cats { padding-bottom: 12px; }
.cat { border-color: #e0d0c0; }
.cat.active { box-shadow: 0 4px 10px rgba(196, 92, 38, .25); }
.section-head h3 { font-size: 18px; color: var(--kz-ink); }

.card-item { border-color: #e4d6c8; transition: transform .15s var(--kz-ease); }
.card-item:active { transform: scale(.98); }
.card-item .meta { padding: 8px 10px 10px; }
.card-item .price { font-size: 15px; }
.card-item .title { color: var(--kz-ink); display: block; -webkit-line-clamp: unset; overflow: visible; margin-top: 2px; font-size: 13px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.card-item .meta-row { margin-top: 4px; }
.card-item .kz-chip { font-size: 10.5px; padding: 2px 7px; }
.card-item .heart { width: 34px; height: 34px; top: 8px; right: 8px; }

@media (max-width: 599px) {
  .sold-rail { grid-auto-columns: calc((100% - 20px) / 3.3); padding-bottom: 10px; }
  .sold-rail .card-item .kz-chip { display: none; }
  .sold-rail .card-item .price { font-size: 13px; }
  .home-stack .hero-carousel { height: 170px; margin-bottom: 12px; }
  .hero-arrow { display: none; }
  .hero-slide .overlay { background: linear-gradient(180deg, rgba(28,20,16,0) 20%, rgba(28,20,16,.35) 55%, rgba(28,20,16,.85) 100%); padding: 14px 18px 16px; }
  .hero-slide strong { font-size: clamp(18px, 5.2vw, 24px); }
  .home-head .home-filter-btn, .home-head .home-lang-btn { background: transparent; border-color: transparent; box-shadow: none; }
  .home-head .home-filter-btn.on { background: var(--kz-primary-soft); }
  .home-brand .kz-wordmark, .home-brand .word { font-size: 1.1em; }
}
@media (prefers-reduced-motion: reduce) { .card-item { transition: none; } }

/* Aesthetic cards: soft lift, rounder corners, condition as quiet text (no pill), nothing cut off. */
.card-item { border-radius: 18px; box-shadow: 0 6px 18px rgba(28, 20, 16, .06); border-color: #eadccd; }
.card-item .img { border-radius: 0; }
.card-item .meta-row .kz-chip { background: none; border: 0; padding: 0; font-size: 11.5px; color: var(--kz-muted); border-radius: 0; }
.card-item .price { letter-spacing: -.01em; }
.sold-rail .card-item .title { font-size: 12px; }
.offer-detail { width: 100%; display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border: 1px solid #ecd6b4; border-radius: 14px; background: var(--kz-accent-soft); color: var(--kz-ink2); text-align: start; cursor: pointer; }
.offer-detail b { margin-inline-start: auto; flex: none; font-size: 13px; color: var(--kz-primary); }
/* Nothing cut off on the item page: full title in the top bar, price on one line. */
.item-screen > .item-top-row .page-h { white-space: normal; overflow: visible; text-overflow: clip; font-size: 16px; line-height: 1.25; }
.item-screen .detail-body .price-lg { white-space: nowrap; flex: none; }

/* ===== Boutique pass (20 Oct 2026): one calm, warm system. Overrides only. ===== */
#homeScroll { background: linear-gradient(180deg, #f5e9dd 0, var(--kz-bg) 340px); }
.home-stack .section-head h3 { font-style: italic; font-size: 22px; letter-spacing: -.01em; }
.home-stack .section-head { padding: 6px 0 12px; }
.cat { border-radius: 999px; padding: 10px 16px; }
.hero-carousel { border-radius: 22px; box-shadow: 0 12px 28px rgba(28, 20, 16, .14); }
.hero-slide img { transition: transform 6s ease-out; }
.hero-slide:hover img { transform: scale(1.03); }

/* Recently sold: its own blush panel, quiet badge, price clear. */
.sold-panel { margin: 4px 0 18px; padding: 14px 12px 4px; border-radius: 24px; background: linear-gradient(180deg, #f3e1d2 0, #f8ece0 100%); border: 1px solid #ecd6c2; }
.sold-panel .sold-head { padding: 0 4px 10px; align-items: flex-start; }
.sold-titles h3 { margin: 0; }
.sold-proof { margin: 2px 0 0; font-size: 12.5px; line-height: 1.3; color: var(--kz-secondary); font-weight: 500; }
.sold-panel .section-head button { padding: 4px 6px; min-height: 36px; }
.sold-rail { padding-bottom: 12px; }
.sold-rail .card-item { box-shadow: 0 4px 12px rgba(143, 61, 22, .10); }
.sold-rail .card-item .price { color: var(--kz-secondary); font-weight: 700; }
.kz-badge-sold { background: rgba(255, 253, 248, .94); color: var(--kz-secondary); border: 1px solid rgba(196, 92, 38, .35); font-weight: 700; letter-spacing: .06em; }

@media (min-width: 600px) and (max-width: 899px) { .home-stack .hero-carousel { height: 280px; } }
@media (min-width: 900px) { .home-stack .hero-carousel { height: 340px; } }
@media (prefers-reduced-motion: reduce) { .hero-slide img { transition: none; } .hero-slide:hover img { transform: none; } }
.sold-rail .card-item .heart { display: none; }
.sold-rail .card-item .kz-badge { font-size: 10px; padding: 3px 8px; }
.sold-rail { align-items: start; }
.sold-rail .offer-whisper { display: none; }
@media (max-width: 599px) { .sold-rail { grid-auto-columns: calc((100% - 10px) / 2.5); } .sold-rail .card-item .title { overflow-wrap: break-word; } }

/* Both Home strips are permanent (owner 20 Oct 2026): no close button, normal right padding. */
.howto-go { padding-right: 12px; }
.offer-strip { padding-right: 12px; }
[dir="rtl"] .howto-go { padding-right: 10px; padding-left: 12px; }
[dir="rtl"] .offer-strip { padding-right: 10px; padding-left: 12px; }

/* ===== App-wide boutique layer (20 Oct 2026): every screen shares one soft look.
   Visual only: radius, shadow, colour, type. No widths, no text, no logic; RTL-safe (logical properties). ===== */
.page-title { font-style: italic; font-size: 26px; letter-spacing: -.01em; }
.page-h { letter-spacing: -.01em; }
.back-plain { color: var(--kz-ink2); font-weight: 500; }

.kz-btn { border-radius: 14px; letter-spacing: .005em; }
.kz-btn-primary { background: linear-gradient(180deg, #cf6730 0%, var(--kz-primary) 100%); box-shadow: 0 8px 18px rgba(196, 92, 38, .28); }
.kz-btn-ghost { border-color: #e4d6c8; }
.kz-btn-soft { background: var(--kz-primary-soft); color: var(--kz-secondary); }
.kz-icon-btn { border-color: #e4d6c8; border-radius: 14px; }
.kz-chip { font-weight: 600; }
.kz-badge { letter-spacing: .06em; }

.kz-field > span { color: var(--kz-ink2); opacity: .75; }
.kz-field input, .kz-field select, .kz-field textarea { border-color: #e4d6c8; border-radius: 14px; background: #fffdf9; transition: border-color .18s var(--kz-ease), box-shadow .18s var(--kz-ease); }
.kz-field input:focus, .kz-field select:focus, .kz-field textarea:focus { border-color: var(--kz-primary); box-shadow: 0 0 0 3px rgba(196, 92, 38, .14); }

/* lists: Inbox, Alerts, Orders, Profile menu, Bag, Checkout */
.row-item, .menu-item, .order-card, .checkout-item, .checkout-totals, .cart-row, .stat, .bid-card, .seller-card {
  border-color: #eadccd; border-radius: 16px; box-shadow: 0 4px 14px rgba(28, 20, 16, .05);
}
.row-item { padding: 13px 14px; transition: transform .15s var(--kz-ease); }
.row-item:active, .menu-item:active, .order-card:active { transform: scale(.99); }
.row-item.unread { border-color: rgba(196, 92, 38, .55); background: linear-gradient(90deg, rgba(196, 92, 38, .07), #fffdf9 60%); }
html[dir=rtl] .row-item.unread { background: linear-gradient(270deg, rgba(196, 92, 38, .07), #fffdf9 60%); }
.row-item strong { color: var(--kz-ink); }
.row-item .muted { line-height: 1.4; }
.menu-item { padding: 15px 16px; }
.menu-item .mi-label { font-weight: 500; color: var(--kz-ink); }
.order-card { padding: 16px; }
.order-card img { border-radius: 12px; }
.status-pill { padding: 5px 10px; letter-spacing: .03em; background: var(--kz-accent-soft); color: var(--kz-secondary); border: 1px solid #ecd6b4; }
.track-step .dot { width: 14px; height: 14px; }
.track-step.on .dot, .track-step.done .dot { box-shadow: 0 0 0 4px rgba(196, 92, 38, .15); }
.track-line::before { height: 3px; border-radius: 3px; }
.stat strong { font-family: var(--serif); font-size: 20px; }
.checkout-totals { background: linear-gradient(180deg, #fffdf9, #fbf4ea); }
.profile-hero img { width: 84px; height: 84px; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(28, 20, 16, .14); }
.ph-name { font-style: italic; font-size: 24px; }

/* Sell: steps and photo drop */
.steps i { height: 5px; }
.photo-drop { border-radius: 22px; background: linear-gradient(180deg, #fbefe4, var(--kz-primary-soft)); border-color: rgba(196, 92, 38, .55); }
.photo-notice { border-radius: 16px; border-color: #eadccd; }
.sell-fee-breakdown { border-radius: 16px; }

/* Sheets and dialogs */
.sheet { border-radius: 26px 26px 0 0; box-shadow: 0 -12px 40px rgba(28, 20, 16, .18); }
.sheet h3 { font-family: var(--serif); font-style: italic; font-size: 21px; }
.sheet-row { border-color: #eadccd; border-radius: 14px; }

/* Item page: quieter info cards, bolder price */
.item-screen .detail-body h2 { font-size: 26px; line-height: 1.15; }
.item-screen .detail-body .price-lg { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.item-screen .sticky-cta { background: linear-gradient(to top, var(--kz-bg) 78%, rgba(250, 246, 241, 0)); }
.item-screen .kz-badge { text-transform: none; font-size: 11px; }

/* Empty states */
.kz-empty { background: linear-gradient(180deg, rgba(243, 228, 216, .45), rgba(243, 228, 216, 0)); border-radius: 22px; margin: 8px var(--kz-gutter); }
.defect-box { background: linear-gradient(180deg, #fbefe9, #f9e6df); border: 1px solid #f0d3c8; border-radius: 18px; }
.safety-box, .policy-box { background: #fffdf9; border: 1px solid #eadccd; border-radius: 18px; box-shadow: 0 4px 14px rgba(28, 20, 16, .04); }
.safety-box h4, .safety-box strong, .policy-box h4, .policy-box strong, .defect-box h4, .defect-box strong { font-family: var(--serif); font-style: italic; font-weight: 600; }
.attr { border-color: #eadccd; border-radius: 14px; background: #fffdf9; }
.seller-card { background: #fffdf9; }

/* ===== Browse, search, filters (20 Oct 2026) ===== */
.browse-stack .section-head h3, .browse-stack h3 { font-style: italic; font-size: 22px; }
.search-bar { border-radius: 999px; border-color: #e4d6c8; box-shadow: 0 6px 16px rgba(28, 20, 16, .06); background: #fffdf9; padding-inline: 18px; }
.search-bar:focus-within { box-shadow: 0 0 0 3px rgba(196, 92, 38, .14); }
.filter-chip { border-radius: 999px; border: 1px solid #e0d0c0; background: #fffdf9; color: var(--kz-ink2); font-weight: 500; padding: 9px 16px; transition: background .18s var(--kz-ease), color .18s var(--kz-ease), border-color .18s var(--kz-ease); }
.filter-chip.on, .filter-chip:hover { background: var(--kz-primary); border-color: var(--kz-primary); color: #fff; }
.cat-tile { position: relative; overflow: hidden; gap: 14px; padding: 20px 16px 18px; border-radius: 20px; border-color: #eadccd; background: linear-gradient(160deg, #fffdf9 0%, #f8ecdf 100%); box-shadow: 0 8px 20px rgba(28, 20, 16, .06); transition: transform .18s var(--kz-ease), box-shadow .18s var(--kz-ease); }
.cat-tile::after { content: ""; position: absolute; inset-inline-end: -26px; top: -26px; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 92, 38, .16), rgba(196, 92, 38, 0) 70%); pointer-events: none; }
.cat-tile:active { transform: scale(.98); }
.cat-tile-icon { width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(160deg, #f7e3d3, #efd0b8); box-shadow: 0 4px 10px rgba(196, 92, 38, .18); }
.cat-tile-icon svg { width: 24px; height: 24px; }
.cat-tile-name { font-size: 21px; color: var(--kz-ink); line-height: 1.1; }
.browse-stack, .seller-screen, .cart-stack { background: linear-gradient(180deg, #f5e9dd 0, transparent 220px); }

/* ===== Premium pass 2: forms, option cards, empty states, order/checkout (20 Oct 2026). Visual only. ===== */
/* Form section headings (Sell, Address, Checkout): italic serif with a small terracotta mark */
.scroll > h3.section-head, .scroll > .section-head > h3 { font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--kz-ink); }
.scroll > h3.section-head { margin: 22px 0 10px; padding-inline: 0; display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.scroll > h3.section-head::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: linear-gradient(180deg, #e58f4d, var(--kz-primary)); flex: none; }
.scroll > h3.section-head:first-child { margin-top: 8px; }

.photo-drop { position: relative; gap: 10px; height: 150px; font-weight: 600; letter-spacing: .01em; box-shadow: inset 0 0 0 1px rgba(196, 92, 38, .06); transition: transform .18s var(--kz-ease); }
.photo-drop::before { content: ""; width: 46px; height: 46px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l1.6-2h6.8L17 8h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: 0 6px 14px rgba(196, 92, 38, .2); }
.photo-drop:active { transform: scale(.99); }
.photo-row img { border-radius: 14px; box-shadow: 0 4px 10px rgba(28, 20, 16, .12); }

.pay-opt { border-color: #eadccd; border-radius: 18px; background: #fffdf9; box-shadow: 0 4px 12px rgba(28, 20, 16, .05); transition: border-color .18s var(--kz-ease), background .18s var(--kz-ease), transform .15s var(--kz-ease); }
.pay-opt:active { transform: scale(.99); }
.pay-opt.selected { border-color: var(--kz-primary); background: linear-gradient(135deg, #fbefe4, #f6e2d0); box-shadow: 0 8px 18px rgba(196, 92, 38, .16); }
.pay-opt .info strong { font-weight: 700; }
.fine { color: var(--kz-muted); }

.sticky-cta .kz-btn-primary, .sticky-cta .kz-btn-lg { border-radius: 16px; }
.sticky-cta { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Empty states: quiet ornament above the italic headline */
.kz-empty { padding: 40px 24px 36px; border: 1px solid #eadccd; background: linear-gradient(180deg, #fffdf9 0%, #f8ecdf 100%); box-shadow: 0 8px 22px rgba(28, 20, 16, .05); }
.kz-empty::before { content: ""; display: block; width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c45c26'%3E%3Cpath d='M12 2l2.2 6.3L21 9l-5 4.2L17.5 20 12 16.4 6.5 20 8 13.2 3 9l6.8-.7z'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: 0 8px 18px rgba(196, 92, 38, .2); }
.kz-empty h3 { font-size: 24px; }

/* Orders: tabs, cards, status */
.page-title-row .page-title { padding: 0; }
.filter-bar .filter-chip { min-height: 40px; }
.order-card .top strong { font-family: var(--serif); font-style: italic; font-size: 17px; font-weight: 600; }
.order-card .spread { align-items: center; }
.order-status-note, .order-loc { border-radius: 14px; }
.order-actions .kz-btn { border-radius: 14px; }

/* Chat */
.chat-head { background: #fffdf9; box-shadow: 0 4px 14px rgba(28, 20, 16, .05); border-bottom-color: #eadccd; }
.msg, .bubble { border-radius: 18px; }
.composer, .chat-composer { background: #fffdf9; border-top-color: #eadccd; }

/* ===== Premium pass 3: text pages and Balance (20 Oct 2026). Visual only. ===== */
.pad > p.desc { margin: 4px 0 16px; padding: 20px 18px; font-size: 15px; line-height: 1.7; color: var(--kz-ink2); background: linear-gradient(180deg, #fffdf9, #f8ecdf); border: 1px solid #eadccd; border-radius: 22px; box-shadow: 0 8px 22px rgba(28, 20, 16, .05); }
.pad > p.muted:only-child { padding: 18px; background: #fffdf9; border: 1px solid #eadccd; border-radius: 20px; line-height: 1.6; }

/* Balance: two money tiles (inline-styled in markup, so !important) */
.pad > div[style*="grid-template-columns:1fr 1fr"] > div { border-radius: 20px !important; padding: 18px 16px !important; box-shadow: 0 8px 20px rgba(28, 20, 16, .07); border: 1px solid #eadccd !important; }
.pad > div[style*="grid-template-columns:1fr 1fr"] > div:first-child { background: linear-gradient(135deg, #cf6730, #a84b1c) !important; border-color: transparent !important; }
.pad > div[style*="grid-template-columns:1fr 1fr"] > div:first-child .muted { color: rgba(255, 255, 255, .8); }
.pad > div[style*="grid-template-columns:1fr 1fr"] > div:first-child b { color: #fff; }
.pad > div[style*="grid-template-columns:1fr 1fr"] > div:last-child { background: #fffdf9 !important; }
.pad > div[style*="grid-template-columns:1fr 1fr"] b { font-family: var(--serif); font-size: 26px !important; font-weight: 600; letter-spacing: -.01em; }

/* Settings / Address: grouped feel */
.pad > .muted[style*="margin-bottom"] { line-height: 1.5; }
.pad hr, hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, #e4d6c8, transparent); }

/* ===== Chat (20 Oct 2026): warm thread, soft bubbles, floating composer. Visual only. ===== */
.chat-thread { background: linear-gradient(180deg, #f6ece2 0%, #faf6f1 100%); gap: 8px; }
.chat-bubble { border-radius: 20px; padding: 10px 14px; font-size: 14px; line-height: 1.45; box-shadow: 0 3px 10px rgba(28, 20, 16, .06); }
.chat-bubble.me { background: linear-gradient(160deg, #d06a33, #b85220); border-bottom-right-radius: 6px; }
.chat-bubble.them { background: #fffdf9; border-color: #eadccd; border-bottom-left-radius: 6px; }
html[dir=rtl] .chat-bubble.me { border-bottom-right-radius: 20px; border-bottom-left-radius: 6px; }
html[dir=rtl] .chat-bubble.them { border-bottom-left-radius: 20px; border-bottom-right-radius: 6px; }
.product-chip { background: #fffdf9; border-color: #eadccd; border-radius: 18px; box-shadow: 0 6px 16px rgba(28, 20, 16, .06); }
.product-chip img { border-radius: 14px; }
.product-chip .info strong { font-family: var(--serif); font-style: italic; font-size: 16px; font-weight: 600; }
.chat-input { background: #fffdf9; border-top: 1px solid #eadccd; box-shadow: 0 -8px 20px rgba(28, 20, 16, .04); }
.chat-input input { border-radius: 999px; border-color: #e4d6c8; background: #fff; padding: 12px 18px; }
.chat-input input:focus { box-shadow: 0 0 0 3px rgba(196, 92, 38, .14); }
.chat-input button { border-radius: 50%; }
.safety-banner { border-radius: 16px; border-color: #f0d9c4; background: linear-gradient(180deg, #fff8f2, #fbefe4); }
.chat-head .info strong { font-family: var(--serif); font-style: italic; font-size: 17px; font-weight: 600; }
/* Inbox rows */
.row-item > img.thumb { width: 54px; height: 54px; min-width: 54px; min-height: 54px; border-radius: 16px; box-shadow: 0 4px 10px rgba(28, 20, 16, .12); }
.row-item strong { font-family: var(--serif); font-style: italic; font-size: 16px; font-weight: 600; }

/* ===== Item page redesign, phone layout (20 Oct 2026): full-bleed photo, floating back, sheet that overlaps the photo. Markup unchanged. ===== */
@media (max-width: 899px) {
  .item-screen { position: relative; }
  .item-screen > .item-top-row { position: absolute; z-index: 7; inset-inline: 0; top: 0; background: transparent; border: 0; box-shadow: none; padding-top: calc(10px + env(safe-area-inset-top, 0px)); min-height: 0; pointer-events: none; }
  .item-screen > .item-top-row .kz-icon-btn { pointer-events: auto; background: rgba(255, 253, 249, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: rgba(255, 255, 255, .6); box-shadow: 0 6px 16px rgba(28, 20, 16, .18); border-radius: 50%; }
  .item-screen > .item-top-row .page-h { display: none; }
  .item-screen .gallery { height: min(62vh, 500px); background: #e9dfd4; }
  .item-screen .gallery .gallery-bg { display: none; }
  .item-screen .gallery img { object-fit: cover; object-position: center 20%; }
  .item-screen .gallery::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(180deg, rgba(250, 246, 241, 0), rgba(250, 246, 241, .0)); pointer-events: none; }
  .item-screen .gallery .heart-br { top: calc(10px + env(safe-area-inset-top, 0px)); bottom: auto; inset-inline-end: 16px; inset-inline-start: auto; width: 44px; height: 44px; background: rgba(255, 253, 249, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .item-screen .gallery .dots { bottom: 44px; padding: 5px 9px; border-radius: 999px; background: rgba(28, 20, 16, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .item-screen .detail-col { position: relative; z-index: 2; margin-top: -30px; background: var(--kz-bg); border-radius: 30px 30px 0 0; box-shadow: 0 -14px 30px rgba(28, 20, 16, .10); padding-top: 10px; }
  .item-screen .detail-col::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 4px; background: #e4d6c8; margin: 6px auto 0; }
  .item-screen .detail-body { padding-top: 14px; }
  .item-screen .detail-body .row { align-items: flex-start; gap: 14px; }
  .item-screen .detail-body h2 { font-size: 28px; }
  .item-screen .detail-body .price-lg { font-size: 26px; color: var(--kz-primary); }
  .item-screen .price-protect-line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--kz-success-soft); }
  .item-screen .interest-stats { grid-template-columns: auto auto; justify-content: start; gap: 8px; margin: 12px 0 4px; }
  .item-screen .interest-stat { padding: 7px 12px; gap: 8px; border-radius: 999px; background: #fffdf9; border-color: #eadccd; box-shadow: none; }
  .item-screen .interest-ico { width: 24px; height: 24px; border-radius: 50%; }
  .item-screen .interest-copy { display: flex; align-items: baseline; gap: 5px; }
  .item-screen .interest-copy strong { font-size: 15px; }
  .item-screen .sticky-cta { margin: 0 12px 12px; padding: 10px; border-radius: 24px; background: rgba(255, 253, 249, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid #eadccd; box-shadow: 0 14px 34px rgba(28, 20, 16, .20); inset-inline: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 4px); }
  .item-screen .sticky-cta .kz-btn { padding: 13px 10px; border-radius: 16px; }
  .item-screen .scroll.has-cta { padding-bottom: 110px; }
}

/* ===== Page chrome redesign (20 Oct 2026): every inner page gets the same header treatment as Home / Item. ===== */
.screen:has(> .back-plain) { background: linear-gradient(180deg, #f5e9dd 0, var(--kz-bg) 230px); }
.back-plain { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: calc(10px + env(safe-area-inset-top, 0px)) 0 0 var(--kz-gutter); padding: 0; border-radius: 50%; font-size: 0; gap: 0; background: rgba(255, 253, 249, .9); border: 1px solid #eadccd; box-shadow: 0 6px 16px rgba(28, 20, 16, .10); flex: none; align-self: flex-start; }
.back-plain svg { width: 18px; height: 18px; display: block; }
html[dir=rtl] .back-plain { margin: calc(10px + env(safe-area-inset-top, 0px)) var(--kz-gutter) 0 0; }
.screen > .back-plain + .page-title { margin-top: 10px; font-size: 34px; line-height: 1.05; padding-bottom: 6px; }
.screen > .back-plain + .page-title + .muted, .screen > .back-plain + .page-title + p { padding-inline: var(--kz-gutter); }
.screen > .top-row .page-h { font-size: 22px; font-style: italic; }

/* ===== Profile menu: icon tiles (20 Oct 2026). Icons are CSS only; markup and handlers untouched. ===== */
.menu-item::before { content: ""; flex: none; width: 38px; height: 38px; border-radius: 13px; background: linear-gradient(160deg, #fbefe4, #f3dcc8) center / 20px no-repeat; box-shadow: 0 3px 8px rgba(196, 92, 38, .14); }
.menu-item[data-go="settings"]::before, .menu-item[data-act="settings"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8'/%3E%3C/svg%3E"); }
.menu-item[data-go="seller"]::before, .menu-item[data-act="seller"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8'/%3E%3C/svg%3E"); }
.menu-item[data-go="profile-qr"]::before, .menu-item[data-act="profile-qr"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h7v7H3zM14 3h7v7h-7zM3 14h7v7H3zM14 14h3v3h-3zM20 14v7h-3'/%3E%3C/svg%3E"); }
.menu-item[data-go="location"]::before, .menu-item[data-act="location"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11zM12 12a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5'/%3E%3C/svg%3E"); }
.menu-item[data-go="balance"]::before, .menu-item[data-act="balance"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h16a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7zM3 7l12-3v3M16 14h2'/%3E%3C/svg%3E"); }
.menu-item[data-go="orders"]::before, .menu-item[data-act="orders"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5v8l9 5 9-5V8zM3 8l9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.menu-item[data-go="cart"]::before, .menu-item[data-act="cart"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l1 13H5L6 7zM9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E"); }
.menu-item[data-go="favs"]::before, .menu-item[data-act="favs"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-9-9a5 5 0 0 1 9-3 5 5 0 0 1 9 3c-2 4.6-9 9-9 9z'/%3E%3C/svg%3E"); }
.menu-item[data-go="howto"]::before, .menu-item[data-act="howto"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }
.menu-item[data-go="lang-picker"]::before, .menu-item[data-act="lang-picker"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zM3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
.menu-item[data-go="help-dialog"]::before, .menu-item[data-act="help-dialog"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zM9.5 9a2.5 2.5 0 1 1 3.5 2.3c-.7.4-1 .9-1 1.7M12 17h.01'/%3E%3C/svg%3E"); }
.menu-item[data-go="follow-us"]::before, .menu-item[data-act="follow-us"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.5 6.6 19.5l1.2-6L3.3 9.3l6.1-.7z'/%3E%3C/svg%3E"); }
.menu-item.danger::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a3f32' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); background-color: #fdecea; }
.menu-item:not([data-go]):not([data-act])::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c45c26' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h13v16H6a2 2 0 0 0-2 2V5z'/%3E%3C/svg%3E"); }
.menu-item { gap: 12px; padding: 12px 14px; justify-content: flex-start; }
.menu-item .menu-end { margin-inline-start: auto; }
.menu-item .mi-label { font-size: 14.5px; }
.profile-hero { padding-top: calc(18px + env(safe-area-inset-top, 0px)); background: linear-gradient(180deg, #f3dfcd 0, rgba(250, 246, 241, 0) 100%); }
.profile-hero .ph-name { font-size: 26px; }

/* ===== Luxe layer (20 Oct 2026): depth, glow, glass, ornament, texture. Visual only; no markup, no logic. ===== */
:root {
  --kz-lift: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 12px 26px -10px rgba(143, 61, 22, .20), 0 2px 6px rgba(28, 20, 16, .05);
  --kz-lift-lg: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 22px 44px -16px rgba(143, 61, 22, .28), 0 4px 10px rgba(28, 20, 16, .06);
  --kz-glow: 0 10px 26px -6px rgba(196, 92, 38, .50);
  --kz-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Warm paper with a whisper of grain */
body { background: var(--kz-bg) var(--kz-grain); }
.screen { background-color: var(--kz-bg); }

/* Inner pages: glow blobs behind the header, a gold flourish under the title */
.screen:has(> .back-plain) { background: radial-gradient(120% 60% at 100% -10%, rgba(229, 143, 77, .32), rgba(229, 143, 77, 0) 60%), radial-gradient(90% 50% at -10% 0%, rgba(196, 165, 116, .28), rgba(196, 165, 116, 0) 60%), linear-gradient(180deg, #f6ebdf 0, var(--kz-bg) 300px); }
.screen > .back-plain + .page-title { font-variation-settings: "opsz" 144; font-size: 38px; letter-spacing: -.025em; position: relative; padding-bottom: 14px; }
.screen > .back-plain + .page-title::after { content: ""; position: absolute; inset-inline-start: var(--kz-gutter); bottom: 2px; width: 46px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #c4a574, #e58f4d); }
.screen > .top-row .page-h, .page-title-row .page-title { font-variation-settings: "opsz" 144; }
.section-head h3, .scroll > h3.section-head, .sheet h3, .kz-empty h3, .ph-name { font-variation-settings: "opsz" 144; }

/* Cards: layered light, glass edge, lift on press */
.row-item, .menu-item, .order-card, .checkout-item, .checkout-totals, .cart-row, .stat, .bid-card, .seller-card, .product-chip, .pay-opt, .safety-box, .policy-box, .photo-notice, .interest-stat {
  box-shadow: var(--kz-lift); border-color: rgba(228, 214, 200, .9); background-color: #fffdf9;
}
.card-item { box-shadow: var(--kz-lift); }
.card-item:hover { transform: translateY(-2px); box-shadow: var(--kz-lift-lg); }
.row-item:active, .menu-item:active, .order-card:active, .pay-opt:active { box-shadow: 0 4px 12px -6px rgba(143, 61, 22, .25); }
.pay-opt.selected { box-shadow: var(--kz-lift-lg), 0 0 0 1.5px var(--kz-primary); }

/* Buttons: jewel-like primary, glass secondary */
.kz-btn-primary { background: linear-gradient(180deg, #dd7a3f 0%, #c45c26 55%, #aa4a1c 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, var(--kz-glow); text-shadow: 0 1px 0 rgba(0, 0, 0, .14); letter-spacing: .01em; }
.kz-btn-primary:hover { background: linear-gradient(180deg, #e5854a 0%, #cc632c 55%, #b05020 100%); }
.kz-btn-ghost { background: rgba(255, 253, 249, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--kz-lift); }
.kz-btn-soft { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset; }
.kz-icon-btn { box-shadow: var(--kz-lift); background: rgba(255, 253, 249, .9); }

/* Inputs: inset well, glowing focus */
.kz-field input, .kz-field select, .kz-field textarea, .chat-input input, .search-bar { box-shadow: 0 2px 6px rgba(28, 20, 16, .04) inset, 0 1px 0 rgba(255, 255, 255, .9); }
.kz-field input:focus, .kz-field select:focus, .kz-field textarea:focus { box-shadow: 0 0 0 4px rgba(196, 92, 38, .14), 0 2px 6px rgba(28, 20, 16, .04) inset; }
.kz-field > span { font-size: 10.5px; letter-spacing: .09em; color: var(--kz-secondary); opacity: .8; }

/* Chips and badges: pill with a faint inner edge */
.kz-chip, .kz-badge, .status-pill { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset; }
.cat.active { box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, var(--kz-glow); }

/* Empty states: concentric rings around the icon */
.kz-empty::before { box-shadow: 0 0 0 10px rgba(196, 92, 38, .07), 0 0 0 22px rgba(196, 92, 38, .04), 0 10px 20px rgba(196, 92, 38, .22); margin-bottom: 22px; width: 58px; height: 58px; }
.kz-empty { box-shadow: var(--kz-lift-lg); }

/* Section titles: small gold diamond */
.section-head h3::before { content: "\25C6"; font-style: normal; font-size: 8px; color: #c4a574; margin-inline-end: 8px; vertical-align: 3px; }
.scroll > h3.section-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(196, 165, 116, .55), transparent); }
html[dir=rtl] .scroll > h3.section-head::after { background: linear-gradient(270deg, rgba(196, 165, 116, .55), transparent); }

/* Sheets and toast */
.sheet { box-shadow: 0 -20px 60px rgba(28, 20, 16, .28); background: linear-gradient(180deg, #fffdf9, #fbf3ea); }
.kz-toast { background: rgba(28, 20, 16, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 14px 30px rgba(28, 20, 16, .3); }

@media (prefers-reduced-motion: reduce) { .card-item:hover { transform: none; } }

/* ===== Sell page: numbered steps, hero photo well, floating CTA (20 Oct 2026). Visual only. ===== */
.scroll:has(> .photo-drop) { counter-reset: kzstep; padding-bottom: 120px; }
.scroll:has(> .photo-drop) > h3.section-head { counter-increment: kzstep; margin: 30px 0 12px; font-size: 24px; }
.scroll:has(> .photo-drop) > h3.section-head::before { content: counter(kzstep); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #e58f4d, #b85220); color: #fff; font-family: var(--font); font-style: normal; font-size: 14px; font-weight: 700; box-shadow: 0 6px 14px -4px rgba(196, 92, 38, .6); }
.photo-drop { height: 190px; border-radius: 28px; border: 1.5px dashed rgba(196, 92, 38, .6); background: radial-gradient(90% 90% at 50% 0%, #fff4ea 0%, #f6e1cf 100%); box-shadow: var(--kz-lift); font-size: 15px; }
.photo-drop::before { width: 64px; height: 64px; background-size: 30px; box-shadow: 0 0 0 10px rgba(196, 92, 38, .08), 0 0 0 22px rgba(196, 92, 38, .045), 0 12px 24px rgba(196, 92, 38, .25); }
.photo-row { gap: 10px; padding: 2px 2px 8px; }
.photo-row img { width: 84px; height: 84px; border-radius: 18px; border: 2px solid #fff; }
.scroll:has(> .photo-drop) .kz-field { margin-bottom: 18px; }
.scroll:has(> .photo-drop) .kz-field input, .scroll:has(> .photo-drop) .kz-field select, .scroll:has(> .photo-drop) .kz-field textarea { background: #fff; padding: 15px 16px; border-radius: 16px; }
.scroll:has(> .photo-drop) .kz-field > span { margin-bottom: 8px; }
.pay-opt { padding: 16px 18px; border-radius: 22px; }
.pay-opt .radio { box-shadow: 0 0 0 4px rgba(196, 92, 38, .10); }
.pay-opt.selected .radio { box-shadow: 0 0 0 5px rgba(196, 92, 38, .20); }
.sticky-cta:not(.item-cta) { margin: 0 12px 12px; padding: 10px; border-radius: 26px; background: rgba(255, 253, 249, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid #eadccd; box-shadow: 0 16px 36px rgba(28, 20, 16, .22); inset-inline: 0; }
.sticky-cta:not(.item-cta) .kz-btn { padding: 16px; font-size: 15px; border-radius: 18px; }

/* ===== Item details: premium sections (20 Oct 2026) ===== */
.item-screen .detail-body { display: flex; flex-direction: column; }
.item-screen .detail-body > * { min-width: 0; }
.item-screen .attrs { gap: 8px; margin: 16px 0 6px; }
.item-screen .attr { padding: 10px 14px; border-radius: 16px; background: #fffdf9; border: 1px solid #eadccd; box-shadow: var(--kz-lift); font-size: 13px; font-weight: 600; color: var(--kz-ink); }
.item-screen .attr b { color: var(--kz-secondary); letter-spacing: .1em; font-size: 9px; }
.item-screen .meta-row .kz-chip { padding: 7px 13px; font-size: 12px; }
.item-screen .price-protect-line { box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset; }
.item-screen .defect-box, .item-screen .safety-box, .item-screen .policy-box { margin: 14px 0; padding: 18px; border-radius: 22px; }
.item-screen .defect-box strong, .item-screen .safety-box strong, .item-screen .policy-box strong { font-size: 18px; margin-bottom: 8px; font-variation-settings: "opsz" 144; }
.item-screen .seller-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; box-shadow: var(--kz-lift-lg); background: linear-gradient(135deg, #fffdf9, #fbefe4); }
.item-screen .seller-card img.avatar, .item-screen .seller-card .avatar { width: 54px; height: 54px; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(28, 20, 16, .16); }
.item-screen .seller-card strong, .item-screen .seller-card b { font-family: var(--serif); font-style: italic; font-size: 18px; font-weight: 600; }
.item-screen .share-row { gap: 10px; margin: 16px 0 6px; }
.item-screen .share-row .kz-icon-btn { border-radius: 16px; width: 48px; height: 48px; }
.item-screen .section-head h3 { font-size: 22px; }
.item-screen .gallery img { transition: transform .6s var(--kz-ease); }
@media (max-width: 899px) {
  .item-screen .detail-col { box-shadow: 0 -18px 40px rgba(28, 20, 16, .13); border-top: 1px solid rgba(255, 255, 255, .8); }
  .item-screen .gallery::after { height: 120px; background: linear-gradient(180deg, rgba(28, 20, 16, 0) 0%, rgba(28, 20, 16, .22) 100%); }
  .item-screen .detail-body h2 { font-size: 30px; font-variation-settings: "opsz" 144; letter-spacing: -.02em; }
  .item-screen .detail-body .price-lg { font-size: 28px; font-variation-settings: "opsz" 144; }
}
.seller-card .info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; align-items: flex-start; }
.seller-card .info .stars { font-size: 12px; color: var(--kz-secondary); font-weight: 600; }
.seller-card .info .muted { display: block; font-size: 12px; line-height: 1.35; }
.seller-card .chev { color: var(--kz-primary); flex: none; width: 20px; height: 20px; }

/* ===== Sell / listing page, full redesign (20 Oct 2026). CSS only: same fields, ids and handlers. ===== */
.screen:has(> .top-row + .scroll > .photo-drop) { background: radial-gradient(120% 55% at 100% -8%, rgba(229, 143, 77, .34), rgba(229, 143, 77, 0) 60%), radial-gradient(90% 45% at -10% 0%, rgba(196, 165, 116, .30), rgba(196, 165, 116, 0) 60%), linear-gradient(180deg, #f6ebdf 0, var(--kz-bg) 320px); }
.screen:has(> .top-row + .scroll > .photo-drop) > .top-row { align-items: flex-end; padding: calc(14px + env(safe-area-inset-top, 0px)) var(--kz-gutter) 8px; min-height: 0; gap: 14px; }
.screen:has(> .top-row + .scroll > .photo-drop) > .top-row .kz-icon-btn { border-radius: 50%; width: 42px; height: 42px; align-self: flex-start; }
.screen:has(> .top-row + .scroll > .photo-drop) > .top-row .page-h { font-size: 36px; line-height: 1.05; font-style: italic; font-variation-settings: "opsz" 144; letter-spacing: -.025em; padding-top: 30px; position: relative; }
.screen:has(> .top-row + .scroll > .photo-drop) > .top-row .page-h::before { content: ""; position: absolute; top: 14px; inset-inline-start: 0; width: 46px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #c4a574, #e58f4d); }

/* Every field becomes a card: small caps label on top, big text below. */
.scroll:has(> .photo-drop)  .kz-field:not(.kz-phone-field) { display: block; margin: 0 0 12px; padding: 12px 18px 6px; background: #fffdf9; border: 1px solid #eadccd; border-radius: 22px; box-shadow: var(--kz-lift); transition: border-color .18s var(--kz-ease), box-shadow .18s var(--kz-ease); }
.scroll:has(> .photo-drop)  .kz-field:not(.kz-phone-field):focus-within { border-color: var(--kz-primary); box-shadow: 0 0 0 4px rgba(196, 92, 38, .12), var(--kz-lift); }
.scroll:has(> .photo-drop)  .kz-field:not(.kz-phone-field) > span { margin: 0 0 2px; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--kz-secondary); opacity: .85; }
.scroll:has(> .photo-drop)  .kz-field:not(.kz-phone-field) input, .scroll:has(> .photo-drop)  .kz-field:not(.kz-phone-field) select, .scroll:has(> .photo-drop)  .kz-field:not(.kz-phone-field) textarea { border: 0; background-color: transparent; box-shadow: none; padding: 6px 0 10px; border-radius: 0; font-size: 17px; font-weight: 500; color: var(--kz-ink); min-height: 0; }
.scroll:has(> .photo-drop)  .kz-field:not(.kz-phone-field) select:not([multiple]):not([size]) { background-position: right 0 center; padding-right: 26px; }
html[dir=rtl] .scroll:has(> .photo-drop)  .kz-field:not(.kz-phone-field) select:not([multiple]):not([size]) { background-position: left 0 center; padding-right: 0; padding-left: 26px; }
.scroll:has(> .photo-drop)  .kz-field:not(.kz-phone-field) textarea { min-height: 74px; line-height: 1.5; }
.scroll:has(> .photo-drop) .kz-field input::placeholder, .scroll:has(> .photo-drop) .kz-field textarea::placeholder { color: #b9aa9d; font-weight: 400; }
.scroll:has(> .photo-drop) .kz-field .req { color: var(--kz-primary); }

/* Price: the one number that matters gets the stage */
#sPrice, #sBuyNow { font-family: var(--serif); font-size: 34px !important; font-weight: 600 !important; color: var(--kz-primary) !important; letter-spacing: -.02em; font-variation-settings: "opsz" 144; padding-top: 4px !important; }
.scroll:has(> .photo-drop) > .fine { margin: -4px 6px 14px; font-size: 12px; line-height: 1.45; color: var(--kz-muted); text-align: start; }

/* Notes, tips and fee box: quieter, rounder */
.scroll:has(> .photo-drop) > .photo-notice { border-radius: 22px; padding: 16px 18px; background: linear-gradient(135deg, #fffdf9, #fbefe4); }
.scroll:has(> .photo-drop) > .support-note { margin-top: 18px; border-radius: 20px; }
.scroll:has(> .photo-drop) .addr-map { border-radius: 22px; overflow: hidden; box-shadow: var(--kz-lift); }
.scroll:has(> .photo-drop) .sell-fee-breakdown { border-radius: 22px; background: linear-gradient(135deg, #fffdf9, #fbefe4); box-shadow: var(--kz-lift); }
.scroll:has(> .photo-drop) .kz-btn-soft.full { border-radius: 18px; padding: 15px; }
.photo-thumb { position: relative; display: inline-block; }
.photo-thumb i { position: absolute; top: -6px; inset-inline-end: -6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--kz-ink); color: #fff; font-style: normal; font-size: 15px; box-shadow: 0 4px 10px rgba(28, 20, 16, .3); cursor: pointer; }
.screen:has(> .top-row + .scroll > .photo-drop) > .top-row { position: relative; z-index: 4; background: linear-gradient(180deg, #f6ebdf 78%, rgba(246, 235, 223, 0)); padding-bottom: 16px; }

/* ===== Fix 20 Oct 2026: bottom action bars are full width (no card around the button); sell header is glass, not a band. ===== */
.sticky-cta:not(.item-cta) { margin: 0; inset-inline: 0; padding: 18px var(--kz-gutter) calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--kz-bg) 62%, rgba(250, 246, 241, 0)); border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sticky-cta:not(.item-cta) .kz-btn { width: 100%; }
.sticky-cta:not(.item-cta) .kz-btn-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 26px -6px rgba(196, 92, 38, .55); }
.screen:has(> .top-row + .scroll > .photo-drop) > .top-row { background: rgba(246, 235, 223, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ===== Arrows, one style everywhere (20 Oct 2026): every back button is the same soft round button; hero arrows match. ===== */
.kz-icon-btn[data-act="back"], .back-plain, .back-plain.seller-back { width: 42px; height: 42px; min-width: 42px; border-radius: 50%; background: rgba(255, 253, 249, .92); border: 1px solid #eadccd; box-shadow: 0 6px 16px -4px rgba(143, 61, 22, .22), 0 1px 0 rgba(255, 255, 255, .9) inset; color: var(--kz-ink); padding: 0; display: inline-grid; place-items: center; }
.kz-icon-btn[data-act="back"] svg, .back-plain svg { width: 18px; height: 18px; margin: 0; }
.kz-icon-btn[data-act="back"]:active, .back-plain:active { transform: scale(.94); }
.chat-head .kz-icon-btn[data-act="back"] { flex: none; }
.hero-arrow { background: rgba(255, 253, 249, .85); color: var(--kz-ink); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 6px 16px rgba(28, 20, 16, .22); }
.hero-arrow:hover { background: #fff; }
.menu-item .chev, .row-item .chev, .seller-card .chev { color: var(--kz-primary); opacity: .8; }
.back-plain, .back-plain.seller-back, .kz-icon-btn[data-act="back"] { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }

/* ===== Sell page on wide screens (20 Oct 2026): one centred column; fields, notes, photo well and the button share the same edges. ===== */
@media (min-width: 900px) {
  .scroll:has(> .photo-drop) { padding-inline: max(32px, calc((100% - 880px) / 2)); }
  .scroll:has(> .photo-drop) .kz-field, .scroll:has(> .photo-drop) > .err, .scroll:has(> .photo-drop) .reason-row { max-width: none; }
  .screen:has(> .top-row + .scroll > .photo-drop) > .top-row { padding-inline: max(32px, calc((100% - 880px) / 2)); }
  .screen:has(> .top-row + .scroll > .photo-drop) .sticky-cta { width: min(880px, calc(100% - 64px)); max-width: none; margin: 0 auto; padding: 16px 0 32px; }
}
