
*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:#ece5dd;color:#111}
a{color:#075E54;text-decoration:none}.app{max-width:480px;margin:0 auto;background:#f6f6f6;min-height:100vh;padding-bottom:78px;box-shadow:0 0 24px rgba(0,0,0,.12)}
.top{background:#075E54;color:#fff;display:flex;align-items:center;gap:8px;padding:12px 14px;position:sticky;top:0;z-index:5}.top a{color:#fff}.logo{font-weight:800;font-size:20px}.tag{font-size:11px;opacity:.85}.spacer{flex:1}.top img{width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid #FFD54F}.langform select{border:0;border-radius:14px;padding:5px}
main{padding:12px}.searchbar{display:flex;gap:8px}.searchbar input,.searchbar select,form.stack input,form.stack textarea,form.stack select{width:100%;padding:12px;border:1px solid #ddd;border-radius:12px;background:#fff;font:inherit}
.btn{background:#25D366;color:#fff;border:0;border-radius:24px;padding:13px 18px;font-weight:700;cursor:pointer;display:inline-block;text-align:center}.btn.small{padding:7px 12px}.btn.dark{background:#075E54}.btn.danger{background:#d32f2f}.btn.ghost{background:#fff;color:#075E54;border:1px solid #ccc}
.chips{display:flex;gap:8px;overflow-x:auto;padding:10px 0}.chip{white-space:nowrap;background:#fff;border:1px solid #ddd;padding:8px 13px;border-radius:20px}.chip.on{background:#075E54;color:#fff}
.card{background:#fff;border-radius:16px;padding:14px;margin:10px 0;display:grid;grid-template-columns:1fr 118px;gap:12px;box-shadow:0 1px 3px rgba(0,0,0,.07)}
.card h3{margin:2px 0 5px;font-size:17px}.desc{color:#555;font-size:14px;margin:0 0 8px}.meta{font-size:13px;color:#444}.thumb{width:118px}.thumb img{width:118px;height:96px;object-fit:cover;border-radius:12px;background:#e8f5e9}.price{color:#075E54;font-weight:800;font-size:18px;margin-top:6px}.counts{display:grid;grid-template-columns:1fr 1fr;gap:4px;font-size:12px;color:#555;margin-top:5px}
.flash{background:#dcf8c6;border:1px solid #25D366;padding:10px;border-radius:10px;margin:12px}.error{background:#ffebee;border:1px solid #e57373;padding:10px;border-radius:10px;margin:12px}
form.stack{display:grid;gap:12px}label{font-size:12px;font-weight:700;color:#075E54;text-transform:uppercase}label input,label textarea,label select{margin-top:5px;text-transform:none}
.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;background:#fff;border-top:1px solid #ddd;display:flex;justify-content:space-around;align-items:flex-end;padding:7px 4px calc(7px + env(safe-area-inset-bottom));z-index:6}
.bottom a{color:#555;font-size:20px;text-align:center;display:grid;gap:2px}.bottom span{font-size:11px}.bottom a.sell{background:#25D366;color:#fff;width:56px;height:56px;border-radius:50%;font-size:34px;place-items:center;margin-top:-22px;box-shadow:0 4px 12px rgba(0,0,0,.25)}
.chatbg{background:#ece5dd;border-radius:14px;padding:10px}.bubble{background:#fff;border-radius:10px;padding:9px 11px;margin:8px 0;max-width:86%}.bubble.seller{background:#dcf8c6;margin-left:auto}.bubble b{font-size:13px}.bubble time{display:block;text-align:right;color:#888;font-size:11px}.pinned{background:#fff;border-radius:14px;padding:12px;display:flex;gap:10px}.pinned img{width:72px;height:72px;object-fit:cover;border-radius:10px}
.replybar{display:flex;gap:8px;position:sticky;bottom:70px}.replybar input{flex:1;padding:12px;border-radius:24px;border:1px solid #ccc}
.profilehead{background:#075E54;color:#fff;text-align:center;padding:22px;border-radius:0 0 18px 18px;margin:-12px -12px 12px}.profilehead img{width:96px;height:96px;border-radius:50%;object-fit:cover;border:3px solid #FFD54F;background:#fff}
.stats{display:grid;grid-template-columns:1fr 1fr 1fr;background:#fff;border-radius:14px;text-align:center;padding:14px}.stats b{font-size:20px;display:block}
.switchrow{display:flex;justify-content:space-between;align-items:center;background:#fff;padding:13px;border-radius:12px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.badge{background:#e8f5e9;color:#075E54;padding:3px 8px;border-radius:10px;font-size:11px;font-weight:700}.badge.sold{background:#ffebee;color:#c62828}
.mini{font-size:12px;color:#777}.actions{display:flex;gap:8px;flex-wrap:wrap}

/* Design polish (approved WhatsApp style): bigger photos, bigger touch targets, faster-feeling cards */
.top{box-shadow:0 2px 8px rgba(0,0,0,.18)}
.searchbar input,.searchbar select,form.stack input,form.stack textarea,form.stack select{font-size:16px;min-height:48px}
.chip{padding:10px 15px;min-height:44px;display:inline-flex;align-items:center}
.card{grid-template-columns:1fr 132px;border-radius:18px;padding:15px}
.thumb{width:132px}.thumb img{width:132px;height:112px;aspect-ratio:4/3;object-fit:cover}
.price{font-size:19px}
.btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;font-size:16px}
.btn.small{min-height:40px;font-size:14px}
.bottom a{padding:6px 10px;min-width:56px}
.bubble{padding:11px 13px;border-radius:12px;line-height:1.45}
.pinned{box-shadow:0 2px 8px rgba(0,0,0,.08)}
.replybar input{min-height:48px;font-size:16px}
img{max-width:100%}
@media (max-width:360px){.card{grid-template-columns:1fr 112px}.thumb,.thumb img{width:112px}}

/* Wallet v2 */
.actions .btn{white-space:nowrap}
@media (max-width:380px){.top .tag{display:none}.top .btn.small{padding:6px 9px}}
.bubble.mine{background:#dcf8c6;margin-left:auto;text-align:left}
.bubble:not(.mine):not(.seller){background:#fff;margin-right:auto}
.micwrap{position:relative;flex:1;display:block}
.micwrap input,.micwrap textarea{width:100%;padding-right:48px!important;box-sizing:border-box}
.micBtn{position:absolute;right:6px;top:6px;width:36px;height:36px;border-radius:50%;border:1px solid #ccc;background:#fff;cursor:pointer;font-size:16px;line-height:1;z-index:2}
.micwrap.single .micBtn{top:50%;transform:translateY(-50%)}
.micBtn.recording{background:#e53935!important;color:#fff;border-color:#e53935;animation:micpulse 1s ease-in-out infinite}
@keyframes micpulse{0%{box-shadow:0 0 0 0 rgba(229,57,53,.5)}50%{box-shadow:0 0 0 8px rgba(229,57,53,0)}100%{box-shadow:0 0 0 0 rgba(229,57,53,0)}}
.micMsg{display:block;color:#c62828;font-size:12px;min-height:14px}
.bubble.offerb{border:2px solid #25D366}
.chip.on{background:#075E54;color:#fff}
.chatlogin{background:#fff;border-radius:10px;padding:10px}
@media(max-width:640px){.ad-desktop{display:none!important}}
@media(min-width:641px){.ad-mobile{display:none!important}}

/* ===== Design v4 compact (mobile-first) ===== */
.top{padding:7px 10px;gap:6px}.logo{font-size:17px}.top .tag{display:none}.langform select{padding:3px 4px;font-size:12px;max-width:96px;border-radius:10px}.top img{width:28px;height:28px}.top .btn.small{min-height:32px;padding:4px 9px;font-size:13px}
main{padding:8px 10px}
h2{font-size:19px;margin:10px 0 6px}h3{font-size:15px}
.searchbar input{min-height:42px;padding:9px 12px;border-radius:20px}
.chips{padding:6px 0;gap:6px}.chip{padding:6px 11px;min-height:34px;font-size:13px}
.card{padding:10px;margin:7px 0;border-radius:13px;grid-template-columns:1fr 104px;gap:9px}
.card h3{font-size:15px;margin:1px 0 3px;line-height:1.25}
.desc{font-size:13px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:4px}
.meta{font-size:12px}.thumb{width:104px}.thumb img{width:104px;height:82px;border-radius:9px}
.price{font-size:16px;margin-top:3px}.counts{font-size:11px;margin-top:3px}
.profilehead{padding:14px 10px}.profilehead img{width:72px;height:72px}
.stats{padding:9px}.stats b{font-size:17px}
.switchrow{padding:10px}
form.stack{gap:9px}
.searchbar input,.searchbar select,form.stack input,form.stack textarea,form.stack select{min-height:44px}
.pinned{padding:9px;gap:8px}.pinned img{width:52px;height:52px}
.hero{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;display:block}
.iconrow{display:flex;gap:6px;overflow-x:auto;padding:6px 0;flex-wrap:nowrap}
.iconrow .chip{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;text-decoration:none;color:#075E54}
.safetybox{background:#fff;border-radius:10px;padding:8px 10px;margin:7px 0;font-size:12.5px;color:#555}
.safetybox summary{cursor:pointer;font-weight:700;color:#075E54}
.stickycontact{position:sticky;bottom:124px;z-index:4;margin:8px 0}
.stickycontact a{display:flex;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.stickycontact.hide{display:none}
.filtersheet{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:30;display:none}
.filtersheet.open{display:block}
.filtersheet .sheet{background:#fff;border-radius:16px 16px 0 0;position:absolute;left:0;right:0;bottom:0;max-height:82vh;overflow:auto;padding:14px;max-width:480px;margin:0 auto}
.filtersheet label{font-size:12px;font-weight:700;color:#075E54;text-transform:uppercase;display:block;margin-top:8px}
.filtersheet input,.filtersheet select{width:100%;padding:10px;border:1px solid #ddd;border-radius:10px;margin-top:4px;font:inherit}
.filterbtn{position:relative}
.filtercount{background:#d32f2f;color:#fff;border-radius:50%;font-size:11px;min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;margin-left:4px}
.bubble{margin:6px 0;padding:8px 10px}
.replybar{bottom:66px}
.gallery{position:relative}
.gallery .gbtn{position:absolute;top:42%;width:38px;height:38px;border-radius:50%;border:0;background:rgba(0,0,0,.45);color:#fff;font-size:22px;cursor:pointer;z-index:2}
.gallery #galPrev{left:8px}.gallery #galNext{right:8px}
.galcounter{position:absolute;top:8px;right:8px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;padding:3px 9px;border-radius:12px;z-index:2}
.galdots{position:absolute;bottom:8px;left:0;right:0;text-align:center;z-index:2}
.galdots button{width:9px;height:9px;border-radius:50%;border:0;margin:0 3px;background:rgba(255,255,255,.55);cursor:pointer;padding:0}
.galdots button.on{background:#25D366}
.gal-thumb{cursor:pointer}
.bubblehead{background:#d9f2e3;margin:-8px -10px 7px;padding:5px 10px;border-radius:12px 12px 6px 6px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bubblehead a:first-child{font-weight:800}
.callbtn{background:#25D366;color:#fff!important;border-radius:20px;padding:3px 11px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:5px}
.callbtn .ph{background:#fff;color:#25D366;border-radius:50%;width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;font-size:11px}

/* ===== v5 phone fixes: no sticky contact, sticky chat input, no h-overflow ===== */
html,body{overflow-x:hidden}
.app{overflow-x:clip}
.card h3,.pinned h3{overflow-wrap:anywhere}
.bubble{overflow-wrap:break-word;word-break:break-word}
.bubble form{flex-wrap:wrap}
.iconrow{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.iconrow .chip{flex:0 0 auto}
.hero,.gallery{max-width:100%}
.top{flex-wrap:nowrap;overflow:hidden}
.top .logo{white-space:nowrap}
#chatForm{position:sticky;bottom:64px;z-index:6;background:transparent}
.replybar{position:sticky;bottom:64px;z-index:6;background:#ece5dd;padding:5px;border-radius:26px;align-items:center}
.replybar input{min-width:0}
.replybar .btn{flex:0 0 auto}
.replybar .chip{flex:0 0 auto}
.chatbtn{flex:0 0 auto;width:48px;height:48px;border-radius:50%;border:0;background:#25D366;color:#fff;font-size:20px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.chatbtn.recording{background:#e53935;animation:micpulse 1s ease-in-out infinite}
.replybar input{border-radius:24px}
.topbar2{position:relative;display:flex;align-items:center;gap:10px;padding:2px 0 8px}
.tbback{font-size:19px;font-weight:800;color:#075E54;text-decoration:none}
.tbtitle{font-weight:800;color:#075E54;font-size:16px;flex:1;text-align:center}
.tbdots{margin-left:auto;width:36px;height:36px;border-radius:50%;border:1px solid #ddd;background:#fff;font-size:19px;cursor:pointer;line-height:1}
.menupanel{display:none;position:absolute;right:0;top:42px;background:#fff;border:1px solid #e0e0e0;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.18);z-index:40;min-width:210px;padding:6px}
.menupanel.open{display:block}
.menupanel a,.menupanel button{display:block;width:100%;text-align:left;padding:10px 12px;border:0;background:none;font:inherit;font-size:14.5px;color:#111;text-decoration:none;cursor:pointer;border-radius:8px}
.menupanel a:hover,.menupanel button:hover{background:#e8f5e9}

/* ===== owner-3fixes: full photo + white chat ===== */
.gallery{background:#fff;border-radius:12px}
.hero{object-fit:contain;background:#fff}
.chatbg{background:#fff}
.bubble:not(.mine):not(.seller){background:#fff;border:1px solid #e2e2e2;box-shadow:0 1px 2px rgba(0,0,0,.07)}
.replybar{background:#fff}
.statuschip{font-size:11px;font-weight:700;padding:3px 9px;border-radius:10px;background:#e8f5e9;color:#075E54}
.statuschip.pending{background:#FFF3E0;color:#E65100}
.statuschip.paused{background:#ECEFF1;color:#37474F}
.statuschip.expired{background:#ffebee;color:#c62828}
.statuschip.sold{background:#ede7f6;color:#4527A0}

/* ===== my-listings v2 ===== */
.statsstrip{display:flex;gap:6px;align-items:center;background:#fff;border:1px solid #e3e3e3;border-radius:10px;padding:8px 11px;font-size:13px;margin:8px 0 12px;flex-wrap:wrap}
.mlcard{display:flex;gap:11px;background:#fff;border:1px solid #e4e4e4;border-radius:14px;padding:10px;margin-bottom:10px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.mlcard .mlthumb{flex:0 0 94px;width:94px;height:94px;border-radius:12px;overflow:hidden;background:#f4f4f4}
.mlcard .mlthumb img{width:100%;height:100%;object-fit:cover;display:block}
.mlcard .mlbody{flex:1;min-width:0}
.mlcard .mltitle{display:block;font-weight:700;font-size:15px;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:3px 0 1px}
.mlcard .mlprice{font-size:17px;font-weight:800;color:#075E54}
.mlcard .mlmeta{font-size:12px;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mlcard .mlactions{display:flex;gap:6px;align-items:center;margin-top:7px;flex-wrap:wrap}
.mlcard .mlactions form{display:inline;margin:0}
.mlcard .statuschip{font-size:10.5px;padding:2px 8px}
.mlcard .morewrap{position:relative}
.mlcard .moremenu{display:none;position:absolute;right:0;bottom:38px;background:#fff;border:1px solid #ddd;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.14);padding:5px;z-index:30;min-width:150px}
.mlcard .moremenu.open{display:block}
.mlcard .moremenu button{display:block;width:100%;text-align:left;background:none;border:0;padding:8px 10px;font-size:14px;cursor:pointer;border-radius:7px}
.mlcard .moremenu button:hover{background:#f1f8f3}
.mlcard .moremenu .delitem{color:#c62828!important}

/* ===== safety top panel ===== */
.safetypanel{display:none;position:fixed;top:58px;left:10px;right:10px;z-index:80;background:#fff;border:1px solid #d7e8dc;border-radius:14px;padding:12px 14px 10px;box-shadow:0 10px 30px rgba(0,0,0,.16)}
.safetypanel.open{display:block}
.safetypanel h4{margin:0 22px 6px 0;font-size:15px;color:#075E54}
.safetypanel p{margin:0 0 6px;font-size:13.5px;line-height:1.45;color:#333}
.safetypanel #safetyClose{position:absolute;top:8px;right:8px;width:30px;height:30px;border-radius:50%;border:0;background:#eef4f0;font-size:14px;cursor:pointer}

/* ===== unread replies badge (home cards) ===== */
.thumb .pricerow{display:flex;align-items:center;gap:7px;margin-top:6px}
.thumb .pricerow .price{margin-top:0}
.unreadbadge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#25D366;color:#fff;font-size:12px;font-weight:800;line-height:1;box-shadow:0 1px 2px rgba(0,0,0,.18);flex:0 0 auto}

/* ===== WhatsApp fixed chat bar ===== */
.wabar{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;display:flex;gap:8px;align-items:flex-end;padding:8px;background:#fff;border-top:1px solid #e3e3e3;z-index:70;box-sizing:border-box}
.wapill{flex:1;display:flex;align-items:flex-end;background:#fff;border:1px solid #ccc;border-radius:24px;padding:3px 5px 3px 14px;min-width:0}
.wapill textarea{flex:1;border:0;outline:0;resize:none;font:inherit;font-size:16px;line-height:1.35;max-height:120px;padding:9px 0;background:transparent;min-width:0}
.waicon{flex:0 0 auto;width:38px;height:38px;border:0;background:none;font-size:19px;cursor:pointer;border-radius:50%;padding:0}
.waname{font-size:11px;color:#075E54;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;align-self:center}
.wabar-spacer{height:80px}
.chatphoto{max-width:230px;width:100%;border-radius:10px;display:block;margin:4px 0}

/* ===== listing card v2 ===== */
.card2{background:#fff;border:1px solid #e4e4e4;border-radius:16px;margin:10px 0;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.06);cursor:pointer}
.card2 .cardphoto{position:relative;background:#fff;aspect-ratio:4/3}
.card2 .cardphoto img{width:100%;height:100%;object-fit:contain;background:#fff;display:block}
.card2 .cardbadge{position:absolute;top:10px;right:10px;z-index:2;min-width:26px;height:26px;border-radius:13px;font-size:13px;padding:0 8px}
.card2 .cardbody{padding:9px 12px 11px}
.card2 .cardmeta{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.card2 .cardtitle{margin:4px 0 2px;font-size:16.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card2 .carddesc{margin:0 0 6px;color:#555;font-size:13.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.card2 .cardrow{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:5px}
.card2 .cardprice{color:#075E54;font-weight:800;font-size:20px;flex:0 0 auto}
.card2 .carduser{font-size:15px;font-weight:700;color:#0b4f46;min-width:0;overflow-wrap:anywhere}
.card2 .cardcontact{margin-left:auto;flex:0 0 auto}

/* ===== listing card v3 (side photo, bigger) ===== */
.card3{background:#fff;border:1px solid #e4e4e4;border-radius:16px;margin:10px 0;padding:10px 11px;box-shadow:0 1px 3px rgba(0,0,0,.06);cursor:pointer}
.card3main{display:flex;gap:11px;align-items:stretch}
.card3info{flex:1;min-width:0}
.card3 .cardmeta{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.card3 .cardtitle{margin:4px 0 2px;font-size:16px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card3 .carddesc{margin:0 0 5px;color:#555;font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.card3 .cardcity{font-size:13px;color:#444}
.card3photo{flex:0 0 42%;position:relative;border-radius:12px;overflow:hidden;background:#eef3f0;min-height:104px}
.card3photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.card3 .cardbadge{position:absolute;top:7px;right:7px;z-index:2;min-width:25px;height:25px;border-radius:13px;font-size:12.5px;padding:0 7px}
.card3 .cardrow{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:8px;padding-top:8px;border-top:1px solid #f0f0f0}
.card3 .cardprice{color:#075E54;font-weight:800;font-size:20px;flex:0 0 auto}
.card3 .carduser{font-size:15px;font-weight:700;color:#0b4f46;min-width:0;overflow-wrap:anywhere}
.card3 .cardcontact{margin-left:auto;flex:0 0 auto}
