/* App ya watafutaji (index.html) - muonekano wa "glass" kama kwenye video */
body.app { background: #F7F1EA; min-height: 100vh; }

/* Mandhari: picha ya wima kwa simu, picha pana kwa skrini kubwa */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #E9DDE6 url('/bg/bg-mobile.jpg') center / cover no-repeat; }
@media (min-width: 700px) and (min-aspect-ratio: 1/1) { .bg { background-image: url('/bg/bg-wide.jpg'); } }
/* Tabaka la ukungu linalofuata picha ya kadi (laini, juu ya picha ya mandhari) */
.bg .bg-img { position: absolute; inset: -80px; background-size: cover; background-position: center; filter: blur(50px) saturate(1.3); opacity: 0; transform: scale(1.15); transition: opacity .8s ease; }
.bg .bg-img.on { opacity: .28; }
/* Kufanya maandishi yasomeke juu ya picha */
.bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,250,248,.10) 0%, rgba(255,250,248,.38) 30%, rgba(255,250,248,.62) 70%, rgba(255,250,248,.78) 100%); }
@media (min-width: 700px) {
  .bg::after { background: linear-gradient(90deg, rgba(255,250,248,0) 0%, rgba(255,250,248,.15) 50%, rgba(255,250,248,0) 100%); }
  .shell { background: rgba(255,250,248,.55); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 0 60px rgba(30,40,60,.18); }
}

.shell { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; z-index: 1; padding-bottom: 110px; }

/* Glass */
.glass { background: rgba(255,255,255,.62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255,255,255,.75); box-shadow: 0 8px 28px rgba(60,40,20,.10); }

/* Kichwa */
.top { padding: 16px 18px 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 5; }
.top .mid { flex: 1; display: flex; justify-content: center; }
.roof-float { width: 30px; height: 30px; animation: floaty 3.4s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
.top .right { display: flex; align-items: center; gap: 8px; }
.me-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--charcoal); position: relative; }
.me-btn .dot { position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }

/* Kitufe cha kutafuta */
.search-pill { margin: 8px 18px 6px; display: flex; align-items: center; gap: 12px; padding: 9px 9px 9px 18px; border-radius: 40px; cursor: pointer; transition: transform .2s; }
.search-pill:active { transform: scale(.98); }
.search-pill .ti-search { font-size: 21px; }
.search-pill .t1 { font-weight: 600; font-size: 15px; line-height: 1.2; }
.search-pill .t2 { font-size: 12px; color: var(--grey); }
.go { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg, #DDB862, #B88C33); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; box-shadow: 0 6px 14px rgba(184,140,51,.45); }
.go.sm { width: 34px; height: 34px; font-size: 16px; box-shadow: 0 4px 10px rgba(184,140,51,.4); }

/* Vigae vya kategoria */
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 18px 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; width: 70px; height: 62px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--char2); padding: 0 4px; transition: all .2s; }
.cat i { font-size: 22px; color: var(--char2); }
.cat.on { background: rgba(246,238,219,.92); border-color: rgba(201,162,74,.55); color: var(--gold-d); }
.cat.on i { color: var(--gold-d); }
.deal-tabs { display: flex; gap: 8px; padding: 8px 18px 2px; overflow-x: auto; scrollbar-width: none; }
.deal-tabs::-webkit-scrollbar { display: none; }
.deal-tabs button { border-radius: 20px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--char2); flex: 0 0 auto; }
.deal-tabs button.on { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* Vichwa vya sehemu */
.sec-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px; }
.sec-h h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 6px; }
.sec-h h2 .ti { color: var(--gold); }
.see-all { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; color: var(--charcoal); }

/* Kadi kubwa zinazoteleza (hero) */
.hero { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 7% 6px; scrollbar-width: none; perspective: 1000px; }
.hero::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 86%; scroll-snap-align: center; height: 300px; border-radius: 28px; overflow: hidden; position: relative; box-shadow: 0 18px 40px rgba(60,40,20,.28); transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s; cursor: pointer; background: #ddd; border: 1px solid rgba(255,255,255,.6); }
.hcard img { width: 100%; height: 100%; object-fit: cover; }
.hcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.70) 100%); }
.hcard .tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(255,255,255,.92); padding: 6px 11px; border-radius: 20px; font-size: 12px; font-weight: 600; display: flex; gap: 5px; align-items: center; }
.hcard .tag i { color: var(--gold-d); }
.gl-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); background: rgba(40,40,40,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.gl-btn.on { color: #FF5A6E; background: rgba(255,255,255,.9); }
.hcard .fav { position: absolute; top: 12px; right: 12px; z-index: 2; }
.hcard .info { position: absolute; left: 16px; right: 14px; bottom: 16px; z-index: 2; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.hcard .loc { font-size: 18px; font-weight: 700; line-height: 1.2; display: flex; align-items: center; gap: 5px; }
.hcard .ln { font-size: 12px; opacity: .92; margin-top: 4px; display: flex; gap: 5px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard .ln b { font-weight: 600; }
.price-glass { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px; border-radius: 30px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); flex-shrink: 0; }
.price-glass .pv { text-align: center; line-height: 1.1; }
.price-glass .pv b { font-size: 15px; display: block; }
.price-glass .pv small { font-size: 10.5px; opacity: .9; }
.dots { display: flex; justify-content: center; gap: 5px; padding: 8px 0 2px; }
.dots span { width: 6px; height: 6px; border-radius: 6px; background: rgba(31,33,37,.18); transition: all .3s; }
.dots span.on { width: 18px; background: var(--gold); }

/* Kadi ndogo (karibu nawe) */
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 18px 8px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.mcard { flex: 0 0 132px; height: 128px; border-radius: 18px; overflow: hidden; position: relative; cursor: pointer; box-shadow: 0 8px 18px rgba(60,40,20,.18); background: #ddd; }
.mcard img { width: 100%; height: 100%; object-fit: cover; }
.mcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.mcard .ov { position: absolute; left: 10px; right: 8px; bottom: 9px; z-index: 2; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; }
.mcard .t { font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 3px; }
.mcard .p { font-size: 12px; font-weight: 700; }
.mcard .p small { font-weight: 400; opacity: .9; }
.mcard .arr { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; background: rgba(255,255,255,.15); }

/* Gridi ya matangazo */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 18px 10px; }
.lcard { cursor: pointer; border-radius: 22px; padding: 6px 6px 10px; }
.lcard .ph { aspect-ratio: 1 / 1; border-radius: 17px; overflow: hidden; position: relative; background: #ddd; }
.lcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lcard:hover .ph img { transform: scale(1.05); }
.lcard .fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; font-size: 16px; }
.lcard .ribbon { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.92); border-radius: 20px; padding: 3px 9px; font-size: 10.5px; font-weight: 600; }
.lcard .ribbon.gold { background: var(--gold); color: var(--charcoal); }
.lcard .b { padding: 8px 4px 0; }
.lcard .t1 { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard .t2 { color: var(--grey); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard .pr { margin-top: 3px; font-size: 13.5px; }
.lcard .pr b { font-weight: 700; }
.lcard .pr small { color: var(--grey); }
.facts-inline { color: var(--grey); font-size: 11.5px; display: flex; gap: 8px; margin-top: 2px; }
.facts-inline span { display: inline-flex; gap: 3px; align-items: center; }

/* Navigation inayoelea */
.bnav { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 532px; height: 66px; border-radius: 34px; display: flex; align-items: center; justify-content: space-around; z-index: 100; padding: 0 6px; }
.bnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--grey); font-weight: 500; width: 62px; position: relative; }
.bnav a i { font-size: 22px; }
.bnav a.on { color: var(--gold-d); }
.bnav .plus { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(145deg, #DDB862, #B88C33); display: flex; align-items: center; justify-content: center; margin-top: -26px; box-shadow: 0 10px 22px rgba(184,140,51,.5); border: 4px solid rgba(255,255,255,.9); }

/* Ukurasa wa tangazo (kama kwenye video) */
.sheet { position: fixed; inset: 0; z-index: 300; background: #FBF7F2; overflow-y: auto; transform: translateY(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.sheet.open { transform: none; }
.sheet-inner { max-width: 560px; margin: 0 auto; padding-bottom: 120px; position: relative; }
.gallery { position: relative; height: 330px; background: #ddd; }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.gallery .g-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; z-index: 3; }
.gallery .g-top .r { display: flex; gap: 8px; }
.gallery .g-count { position: absolute; bottom: 40px; right: 16px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); color: #fff; padding: 3px 10px; border-radius: 12px; font-size: 12px; }
.d-body { background: #FBF7F2; border-radius: 28px 28px 0 0; margin-top: -28px; position: relative; padding: 12px 20px 10px; }
.grab { width: 40px; height: 5px; border-radius: 5px; background: #DDD6CC; margin: 0 auto 16px; }
.d-body h1 { font-size: 23px; margin-bottom: 4px; }
.d-rate { font-size: 13.5px; color: var(--char2); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.d-rate .ti-star { color: var(--charcoal); }
.d-rate .hl { color: var(--gold-d); font-weight: 600; }
.d-sub { color: var(--grey); font-size: 13.5px; display: flex; align-items: center; gap: 5px; margin-top: 4px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.fact { background: #fff; border-radius: 18px; padding: 14px 6px; text-align: center; font-size: 12.5px; color: var(--char2); box-shadow: 0 2px 10px rgba(60,40,20,.05); }
.fact i { font-size: 22px; color: var(--gold-d); display: block; margin-bottom: 4px; }
.host { display: flex; gap: 12px; align-items: center; background: #F5ECE2; border-radius: 20px; padding: 12px 14px; }
.host .avatar { width: 48px; height: 48px; font-size: 18px; }
.host .nm { font-weight: 600; font-size: 14.5px; }
.host .msg { margin-left: auto; background: #fff; border: 0; border-radius: 20px; padding: 8px 14px; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.d-sec { padding: 18px 0 4px; }
.d-sec h3 { font-size: 16.5px; margin-bottom: 12px; }
.amen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amen div { background: #fff; border-radius: 14px; padding: 12px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; border: 1px solid #F0E9DF; }
.amen i { font-size: 19px; color: var(--char2); }
.kv { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; border-bottom: 1px dashed #E8DFD3; gap: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--grey); }
.kv span:last-child { font-weight: 600; text-align: right; }
.kvbox { background: #fff; border-radius: 18px; padding: 6px 16px; }
.desc { white-space: pre-line; font-size: 14px; color: var(--grey); line-height: 1.65; }
.avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--charcoal); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.cta { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 532px; border-radius: 30px; padding: 10px 10px 10px 20px; display: flex; align-items: center; gap: 8px; z-index: 310; }
.cta .pr { flex: 1; min-width: 0; }
.cta .pr b { font-size: 16px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta .pr small { color: var(--grey); font-size: 12px; }
.call-btn { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--charcoal); box-shadow: 0 3px 10px rgba(0,0,0,.08); flex-shrink: 0; }
.wa-btn { height: 52px; border-radius: 28px; padding: 0 20px; background: linear-gradient(145deg, #DDB862, #B88C33); color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; font-size: 15px; box-shadow: 0 8px 18px rgba(184,140,51,.45); flex-shrink: 0; }
.wa-btn i { font-size: 21px; }
.report-link { color: var(--grey); font-size: 13px; text-decoration: underline; background: none; border: 0; padding: 0; display: inline-flex; gap: 5px; align-items: center; }
.safe { background: #fff; border-radius: 18px; padding: 14px 16px; }

/* Paneli ya kutafuta (inafunguka kama kwenye video) */
.spanel-wrap { position: fixed; inset: 0; z-index: 400; background: rgba(250,244,238,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .25s; overflow-y: auto; }
.spanel-wrap.open { opacity: 1; }
.spanel { max-width: 520px; margin: 70px auto 30px; width: calc(100% - 28px); border-radius: 30px; padding: 22px 18px; transform: translateY(-30px) scale(.94); transform-origin: top center; transition: transform .35s cubic-bezier(.2,.9,.2,1.1); background: rgba(255,255,255,.78); }
.spanel-wrap.open .spanel { transform: none; }
.spanel h2 { font-size: 24px; }
.spanel .x { position: absolute; top: 16px; right: 16px; }
.spanel .input { background: rgba(255,255,255,.85); }

/* Ukurasa wa muuzaji */
.store-head { margin: 12px 18px 0; border-radius: 28px; padding: 18px; background: linear-gradient(155deg, #26282D, #1A1B1F); color: var(--off); box-shadow: 0 14px 34px rgba(31,33,37,.3); }
.store-head .avatar { width: 72px; height: 72px; font-size: 26px; border: 3px solid var(--gold); }
.store-head h1 { color: #fff; font-size: 20px; margin: 0 0 2px; }
.store-head .muted { color: var(--grey2); }
.store-actions { display: flex; gap: 8px; margin-top: 16px; }
.store-actions .btn { flex: 1; border-radius: 24px; }
.rating-item { border-bottom: 1px solid #ECE4D9; padding: 12px 0; }

/* Orodha ya madalali */
.seller-row { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 20px; margin: 0 18px 10px; cursor: pointer; }
.seller-row .nm { font-weight: 600; }

/* Kurasa nyingine */
.page-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px 8px; }
.page-h h1 { font-size: 21px; margin: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 10px; }
.chip { background: rgba(255,255,255,.7); border-radius: 20px; padding: 5px 11px; font-size: 12.5px; font-weight: 500; }
.install-bar { margin: 14px 18px; background: var(--charcoal); color: var(--off); border-radius: 22px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.footer-note { text-align: center; color: var(--grey); font-size: 12px; padding: 24px 18px 10px; }
.empty { background: rgba(255,255,255,.55); border-radius: 22px; margin: 0 18px; }
.card { border-radius: 22px; }

/* Lugha */
.lang-btn { height: 36px; border-radius: 20px; padding: 0 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--charcoal); }
.lang-btn i { font-size: 17px; color: var(--gold-d); }

/* Marekebisho ya upana */
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
.spanel #sCats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.spanel #sCats .cat { width: auto; height: 60px; font-size: 10.5px; text-align: center; line-height: 1.15; overflow: hidden; }
.spanel .seg label { font-size: 13px; padding: 9px 2px; }
