*{box-sizing:border-box}
:root{--bg:#fff;--surface:#fff;--text:#17171c;--muted:#85858e;--line:#e9e9ee;--primary:#2f7d4a;--soft:#f6f5fa}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Tahoma,Arial,sans-serif;direction:rtl;padding-bottom:92px}
button,input{font:inherit}button{border:0;background:none;cursor:pointer;color:inherit}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.topbar{height:64px;position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;padding:0 max(14px,calc((100% - 760px)/2));background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.brand{position:absolute;left:50%;transform:translateX(-50%);font-size:26px;font-weight:950;letter-spacing:-1.5px;direction:ltr;white-space:nowrap}.brand span{color:var(--primary)}
.top-actions{display:flex;align-items:center;gap:2px}.icon-btn,.location-btn{display:flex;align-items:center;justify-content:center;height:40px;border-radius:12px}.icon-btn{width:40px}.icon-btn:hover,.location-btn:hover{background:var(--soft)}.icon-btn svg{width:23px;height:23px}
.location-btn{gap:5px;padding:0 8px;font-size:12px;font-weight:800}.location-btn svg{width:18px;height:18px}.location-btn .chevron{width:14px;height:14px;color:var(--muted)}
.container{width:min(980px,100%);margin:0 auto}.categories{padding:13px 12px 10px;border-bottom:1px solid var(--line);background:#fff}.category-strip{display:flex;gap:16px;overflow-x:auto;scrollbar-width:none;padding:2px 1px 7px;scroll-snap-type:x proximity}.category-strip::-webkit-scrollbar{display:none}.category-bubble{flex:0 0 72px;scroll-snap-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;color:#65656e}.category-icon{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#fafaff,#f1eff8);border:1px solid #e4e3eb;box-shadow:0 4px 12px rgba(30,25,55,.06);font-size:25px;transition:.18s}.category-bubble small{font-size:10px;font-weight:800;white-space:nowrap;max-width:72px;overflow:hidden;text-overflow:ellipsis}.category-bubble.active{color:var(--text)}.category-bubble.active .category-icon{background:var(--text);color:#fff;border-color:var(--text);box-shadow:0 6px 16px rgba(20,20,30,.16)}.category-bubble:hover .category-icon{transform:translateY(-2px)}.subcategories{display:none}.subcategories{display:none}.subcategories::-webkit-scrollbar{display:none}.subcat{display:none}.feed-bar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 14px}.feed-bar>span:first-child{font-size:13px;font-weight:900}.result-count{font-size:9px;color:var(--muted)}
.feed{width:100%}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line)}.card{background:var(--surface);overflow:hidden;padding-bottom:10px;min-width:0}.post-head{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 13px}.user{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:12px;font-weight:900}.avatar-purple{background:linear-gradient(135deg,#9c7aff,#3f8f5b)}.avatar-blue{background:linear-gradient(135deg,#5bc0ff,#3475e8)}.avatar-green{background:linear-gradient(135deg,#72d78a,#299e67)}.avatar-orange{background:linear-gradient(135deg,#ffc45e,#e87921)}.avatar-pink{background:linear-gradient(135deg,#ff83b1,#ca3c83)}.avatar-brown{background:linear-gradient(135deg,#c69a76,#7b5036)}.verified{width:14px;height:14px;border-radius:50%;display:inline-grid;place-items:center;background:#2f7d4a;color:#fff;font-size:9px}.more-btn{font-size:15px;letter-spacing:2px;color:#65656d;padding:8px}
.photo{width:100%;aspect-ratio:1/1;display:grid;place-items:center;position:relative;overflow:hidden}.photo span{font-size:62px;filter:drop-shadow(0 10px 14px rgba(0,0,0,.12));position:relative;z-index:2}.photo em{position:absolute;right:12px;top:12px;padding:5px 9px;border-radius:99px;background:rgba(255,255,255,.82);backdrop-filter:blur(8px);font-style:normal;font-size:9px;font-weight:800;color:#4d4d55}.photo-home{background:radial-gradient(circle at 28% 22%,#fff 0 8%,transparent 9%),linear-gradient(135deg,#e9e3ff,#f7f3ff 48%,#dce8ff)}.photo-phone{background:linear-gradient(145deg,#e9f8ff,#d9e5ff 48%,#f5e4ff)}.photo-car{background:linear-gradient(145deg,#eef8f2,#d9eee4 48%,#e5e8ff)}.photo-tech{background:linear-gradient(145deg,#fff3df,#ffe4c5 45%,#e9ddff)}.photo-web{background:linear-gradient(145deg,#e5faff,#d8e8ff 50%,#f3e0ff)}.photo-furniture{background:linear-gradient(145deg,#fff3e8,#f5dfcc 48%,#eadff7)}
.card-body{padding:6px 10px 0}.card-actions{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.action-right{display:flex;align-items:center;gap:6px}.card-actions button{width:28px;height:30px;display:grid;place-items:center}.card-actions svg{width:22px;height:22px}.card-actions .like.liked svg{fill:#e53955;stroke:#e53955}.save.saved svg{fill:currentColor}.card strong{font-size:10px;display:block;line-height:1.5;margin-bottom:3px}.caption{font-size:10px;line-height:1.75;margin:0}.caption b{font-weight:900}.meta{font-size:8px;color:var(--muted);margin:3px 0 0;line-height:1.5}
.search-panel{position:fixed;left:50%;bottom:82px;transform:translateX(-50%) translateY(16px);width:min(540px,calc(100% - 24px));z-index:39;opacity:0;visibility:hidden;transition:.22s ease}.search-panel.open{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}.search-box{height:52px;display:flex;align-items:center;gap:9px;padding:0 14px;background:rgba(255,255,255,.98);border:1px solid var(--line);border-radius:18px;box-shadow:0 14px 35px rgba(20,20,40,.17)}.search-box>svg{color:var(--muted);width:22px}.search-box input{width:100%;border:0;outline:0;background:transparent;font-size:12px;color:var(--text)}.search-box button{font-size:25px;color:var(--muted)}
.bottom-nav{position:fixed;z-index:45;left:50%;bottom:10px;transform:translateX(-50%);width:min(540px,calc(100% - 24px));height:66px;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:21px;box-shadow:0 12px 35px rgba(20,20,40,.14);display:flex;align-items:center;justify-content:space-around;backdrop-filter:blur(18px)}.nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:62px;height:54px;color:#74747e}.nav-item svg{width:22px;height:22px}.nav-item small{font-size:8px}.nav-item.active{color:var(--text);font-weight:900}.publish-item span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--text);color:#fff;font-size:25px;line-height:1}
@media(min-width:701px){body{background:#fafafd}.topbar,.categories,.feed{background:#fff}.container{border-left:1px solid var(--line);border-right:1px solid var(--line);min-height:calc(100vh - 64px)}.photo{aspect-ratio:1/1}.bottom-nav{width:540px}}
@media(max-width:700px){.topbar{height:57px;padding:0 8px}.brand{font-size:22px}.location-btn{font-size:10px}.location-btn svg{width:17px}.icon-btn{width:36px}.category-strip{gap:13px}.category-bubble{flex-basis:66px}.category-icon{width:57px;height:57px}.category-bubble small{font-size:9px}.post-head{height:43px;padding:0 11px}.user{font-size:10px}.avatar{width:30px;height:30px;font-size:10px}.photo span{font-size:50px}.card-body{padding:6px 8px 0}.action-right{gap:10px}.card-actions svg{width:21px;height:21px}.card strong{font-size:10px}.caption{font-size:10px}.meta{font-size:8px}.bottom-nav{bottom:7px;height:60px;border-radius:19px}.nav-item{min-width:54px}.nav-item svg{width:21px;height:21px}.publish-item span{width:32px;height:32px}.search-panel{bottom:78px}}

/* --- Dobloot V3 card polish --- */
.card{position:relative;transition:transform .18s ease,box-shadow .18s ease}.card:hover{z-index:2;box-shadow:0 10px 30px rgba(20,20,35,.10)}
.photo{isolation:isolate}.photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02),transparent 48%,rgba(0,0,0,.08));z-index:1;pointer-events:none}.photo span{font-size:70px;text-shadow:0 12px 22px rgba(0,0,0,.16);transition:transform .25s ease}.card:hover .photo span{transform:scale(1.06)}
.listing-badge{position:absolute;left:11px;top:11px;z-index:3;padding:5px 9px;border-radius:8px;background:#17171c;color:#fff;font-style:normal;font-size:8px;font-weight:900;box-shadow:0 5px 15px rgba(0,0,0,.14)}.listing-badge.hot{background:#2f7d4a}
.card-body{padding:7px 11px 0}.card-actions{margin-bottom:8px}.card-actions button{border-radius:9px;transition:.15s}.card-actions button:hover{background:var(--soft)}
.card strong{font-size:11px;font-weight:950;letter-spacing:-.2px}.caption{font-size:10px;color:#34343b}.caption b{font-size:10.5px}.meta{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#92929b}.views{white-space:nowrap;direction:rtl;font-size:8px}
.feed-bar{position:sticky;top:64px;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid rgba(233,233,238,.7)}
.category-bubble{transition:transform .18s ease}.category-bubble.active .category-icon{box-shadow:0 8px 20px rgba(20,20,30,.18)}
@media(max-width:700px){.feed-bar{top:57px}.photo span{font-size:56px}.listing-badge{left:8px;top:8px;padding:4px 7px}.card-body{padding-left:8px;padding-right:8px}.card strong{font-size:10px}.caption b{font-size:10px}.views{font-size:7px}}
.empty-state{display:none;min-height:180px;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#555;grid-column:1/-1;background:#fff}.empty-state strong{font-size:14px}.empty-state span{font-size:10px;color:#999}

.site-footer{width:min(1180px,calc(100% - 40px));margin:25px auto 110px;padding:24px;display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:22px;background:#fff;border:1px solid var(--line);border-radius:18px;color:var(--text)}.site-footer b,.site-footer strong{font-size:15px}.site-footer p{margin:8px 0;color:var(--muted);font-size:12px;line-height:1.9}.category-bubble small{font-size:11px}.card h3{font-size:15px}.card strong{font-size:13px}.caption{font-size:11px}.meta{font-size:10px}@media(max-width:700px){.site-footer{width:calc(100% - 20px);grid-template-columns:1fr;margin-bottom:82px;padding:18px}.site-footer p{font-size:11px}}

/* V6 city picker + header redesign */
.profile-top{height:40px;min-width:72px;padding:0 9px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:12px;font-size:10px;font-weight:900;color:var(--text)}
.profile-top svg{width:22px;height:22px}
.profile-top:hover{background:var(--soft)}
.city-modal{position:fixed;inset:0;z-index:100;display:none}
.city-modal.open{display:block}
.city-backdrop{position:absolute;inset:0;background:rgba(15,18,20,.42);backdrop-filter:blur(3px)}
.city-sheet{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(540px,100%);max-height:min(78vh,680px);background:#fff;border-radius:24px 24px 0 0;box-shadow:0 -15px 45px rgba(0,0,0,.18);padding:18px 14px 14px;display:flex;flex-direction:column}
.city-head{display:flex;align-items:center;justify-content:space-between;padding:0 3px 12px}
.city-head h3{margin:0;font-size:16px}.city-head p{margin:4px 0 0;color:var(--muted);font-size:9px}
.city-close{width:34px;height:34px;border-radius:50%;background:var(--soft);font-size:24px;line-height:1;color:var(--muted)}
.city-search{height:44px;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:14px;background:#f8f8fa;padding:0 12px;margin-bottom:10px}
.city-search svg{width:20px;color:var(--muted)}.city-search input{border:0;outline:0;background:transparent;width:100%;font-size:11px}
.city-list{overflow-y:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:2px 1px 10px}
.city-item{min-height:42px;border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 11px;font-size:11px;font-weight:800;text-align:right}
.city-item small{font-size:8px;color:var(--muted);font-weight:600}.city-item.active{border-color:var(--primary);background:#f1f8f3;color:var(--primary)}
.city-empty{grid-column:1/-1;text-align:center;color:var(--muted);font-size:10px;padding:20px}
.city-custom{display:flex;gap:7px;padding-top:8px;border-top:1px solid var(--line)}
.city-custom input{min-width:0;flex:1;height:42px;border:1px solid var(--line);border-radius:12px;padding:0 10px;outline:0;font-size:10px}
.city-custom button{height:42px;padding:0 15px;border-radius:12px;background:var(--primary);color:#fff;font-size:10px;font-weight:900}
@media(max-width:700px){.profile-top{min-width:40px;padding:0}.profile-top span{display:none}.city-sheet{max-height:84vh}.city-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
