:root{
  --tap-orange:#c3a252;
  --tap-orange2:#ecd18a;
  --tap-gold-soft:#f9f1db;
  --tap-gold-text:#6f5617;
  --tap-blue:#5c86ff;
  --tap-bg:#f5f6fa;
  --tap-line:#e5e9f0;
  --tap-text:#1c293b;
  --tap-muted:#8792a4;
}

body.accountSimplePage{background:var(--tap-bg)!important;color:var(--tap-text)!important}
body.accountSimplePage header{background:#fff!important;border-bottom:1px solid #e7eaf0!important;box-shadow:none!important}
body.accountSimplePage .accountBrandMark.accountBrandEN{background:linear-gradient(135deg,var(--tap-orange2),var(--tap-orange))!important;color:#3a2808!important;font-size:18px!important;font-weight:1000!important;line-height:1!important}
body.accountSimplePage .brand{color:#17243a!important}
body.accountSimplePage .accountModeSwitch a.active{background:var(--tap-gold-soft)!important;color:var(--tap-gold-text)!important;box-shadow:none!important}
body.accountSimplePage .accountTopActions .primary,
body.accountSimplePage .btn.gold{background:linear-gradient(135deg,var(--tap-orange2),var(--tap-orange))!important;color:#34250c!important}

/* Logged-in dashboard: Tap.az-like two-column account workspace */
body.dashboardActive main.wrap{
  width:min(1040px,calc(100% - 34px))!important;
  display:grid!important;
  grid-template-columns:210px minmax(0,1fr)!important;
  grid-template-rows:auto 1fr!important;
  gap:20px!important;
  align-items:start!important;
  padding:30px 0 70px!important;
}
body.dashboardActive .hero,
body.dashboardActive .stats,
body.dashboardActive .tabs{display:none!important}
body.dashboardActive #accountAccessPanel{
  display:block!important;
  grid-column:1!important;
  grid-row:1 / span 2!important;
  margin:0!important;
  min-width:0!important;
}
body.dashboardActive #accountAccessPanel>.accountHubHead,
body.dashboardActive #accountAccessPanel>.accountModeGrid{display:none!important}
body.dashboardActive #activeProfilePanel{
  display:block!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.dashboardActive #activeProfilePanel>.activeProfileHead{display:none!important}
body.dashboardActive .accountProfileSummary{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:8px!important;
  margin:0 0 10px!important;
  padding:0 10px!important;
  background:transparent!important;
  border:0!important;
}
body.dashboardActive .accountProfileAvatar{
  width:50px!important;height:50px!important;flex:0 0 50px!important;
  border-radius:14px!important;background:#eef2f8!important;color:#8190a6!important;
  border:1px solid #d9e0ea!important;box-shadow:none!important;font-size:18px!important;
}
body.dashboardActive .accountProfileSummaryText{width:100%!important}
body.dashboardActive .verifiedAccountBadge{display:none!important}
body.dashboardActive .accountProfileSummaryText h4{
  font-size:14px!important;line-height:1.2!important;margin:0 0 4px!important;color:#1e2d40!important;
}
body.dashboardActive .accountProfileSummaryText p{display:none!important}
body.dashboardActive .accountProfileAdCount{display:none!important}
body.dashboardActive .profileIdentity{
  display:block!important;margin:0 0 10px!important;padding:0 10px!important;
}
body.dashboardActive .profileIdentity .identityBox{
  background:transparent!important;border:0!important;border-radius:0!important;padding:2px 0!important;margin:0!important;
}
body.dashboardActive .profileIdentity .identityBox small{display:inline!important;font-size:10px!important;color:#7f8a9a!important;text-transform:none!important;letter-spacing:0!important}
body.dashboardActive .profileIdentity .identityBox small:after{content:': '}
body.dashboardActive .profileIdentity .identityBox b{display:inline!important;font-size:10px!important;color:#4f5c6e!important;font-weight:700!important}

.tapAccountBalance{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:10px 0 14px;padding:11px 12px;border-radius:14px;background:#fff;border:1px solid var(--tap-line);
}
.tapAccountBalance small{display:block;font-size:9px;color:#8792a4;margin-bottom:2px}
.tapAccountBalance b{display:block;font-size:13px;color:#445164}
.tapAccountBalance a{height:28px;padding:0 11px;border-radius:9px;background:#5f8cff;color:#fff;display:flex;align-items:center;font-size:10px;font-weight:900}
.tapProfileMenu{display:flex;flex-direction:column;gap:4px;padding-top:4px;border-top:1px solid #e6eaf0}
.tapProfileMenuItem{
  width:100%;height:42px;border:0;border-radius:11px;background:transparent;color:#596679;
  display:flex;align-items:center;gap:10px;padding:0 12px;text-align:left;cursor:pointer;
}
.tapProfileMenuItem span{width:18px;text-align:center;font-size:16px;color:#657287}
.tapProfileMenuItem b{font-size:11px;font-weight:750}
.tapProfileMenuItem:hover{background:#f0f3f8}
.tapProfileMenuItem.active{background:var(--tap-gold-soft);color:var(--tap-gold-text)}
.tapProfileMenuItem.active span{color:var(--tap-gold-text)}
.tapProfileMenuItem.tapLogoutMenu{margin-top:7px;padding-top:9px;border-top:1px solid #e6eaf0;border-radius:0;height:49px}

/* Settings stay available but do not clutter default dashboard */
body.dashboardActive:not(.profileSettingsOpen) #activeProfilePanel>.emlakAvatarUploadCard,
body.dashboardActive:not(.profileSettingsOpen) #activeProfilePanel>.profileNameEditor,
body.dashboardActive:not(.profileSettingsOpen) #activeProfilePanel>.profilePinEditor,
body.dashboardActive:not(.profileSettingsOpen) #activeProfilePanel>.accountDangerActions{display:none!important}

body.dashboardActive #mySection,
body.dashboardActive #favSection{
  grid-column:2!important;grid-row:1 / span 2!important;
  margin:0!important;padding:24px!important;
  border-radius:18px!important;background:#fff!important;border:1px solid #eceff4!important;
  min-width:0!important;box-shadow:none!important;
}
body.dashboardActive #mySection.active,
body.dashboardActive #favSection.active{display:block!important}
body.dashboardActive .sectionHead{margin-bottom:16px!important;align-items:flex-start!important}
body.dashboardActive .sectionHead h2{font-size:19px!important;line-height:1.2!important;color:#182538!important}
body.dashboardActive .sectionHead p{font-size:10px!important;margin-top:4px!important;color:#8a94a4!important}

.myStatusTabs{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 18px!important;
}
.myStatusTabs button{
  height:34px;padding:0 12px;border:1px solid #ebedf2;border-radius:999px;background:#f8f9fb;color:#596679;
  font-size:9px;font-weight:800;cursor:pointer;white-space:nowrap;
}
.myStatusTabs button span{margin-left:3px;color:#7e8999}
.myStatusTabs button.active{background:linear-gradient(135deg,var(--tap-orange2),var(--tap-orange))!important;color:#34250c!important;border-color:var(--tap-orange)!important}
.myStatusTabs button.active span{color:#34250c!important}

body.dashboardActive #myGrid,
body.dashboardActive #favGrid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px 10px!important;
}
body.dashboardActive #myGrid .card,
body.dashboardActive #favGrid .card{
  border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important;box-shadow:none!important;min-width:0!important;
}
body.dashboardActive #myGrid .pic,
body.dashboardActive #favGrid .pic{
  height:128px!important;border-radius:11px!important;background:#edf1f5!important;overflow:hidden!important;
}
body.dashboardActive #myGrid .pic img,
body.dashboardActive #favGrid .pic img{object-fit:cover!important}
body.dashboardActive #myGrid .badge,
body.dashboardActive #favGrid .badge{
  left:7px!important;top:7px!important;padding:4px 7px!important;border-radius:7px!important;font-size:7px!important;background:rgba(60,69,80,.72)!important;
}
body.dashboardActive #myGrid .badge.published{background:#20a86f!important}
body.dashboardActive #myGrid .badge.pending{background:#da8a25!important}
body.dashboardActive #myGrid .cardCarouselArrow,
body.dashboardActive #favGrid .cardCarouselArrow{display:none!important}
body.dashboardActive #myGrid .cardImageCounter,
body.dashboardActive #favGrid .cardImageCounter{
  left:7px!important;right:auto!important;bottom:7px!important;top:auto!important;padding:3px 6px!important;border-radius:7px!important;font-size:7px!important;background:rgba(30,38,49,.7)!important;color:#fff!important;
}
body.dashboardActive #myGrid .body,
body.dashboardActive #favGrid .body{padding:7px 0 0!important;display:block!important}
body.dashboardActive #myGrid .price,
body.dashboardActive #favGrid .price{
  font-size:14px!important;line-height:1.15!important;color:#1c2939!important;margin:0 0 3px!important;white-space:nowrap!important;
}
body.dashboardActive #myGrid .title,
body.dashboardActive #favGrid .title{
  font-size:10px!important;line-height:1.25!important;font-weight:500!important;margin:0 0 4px!important;color:#303d4e!important;
  min-height:25px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
}
body.dashboardActive #myGrid .meta,
body.dashboardActive #favGrid .meta{
  font-size:8px!important;line-height:1.35!important;color:#8a95a6!important;margin:0 0 7px!important;min-height:22px!important;
  display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
}
body.dashboardActive #myGrid .expiryNote{font-size:8px!important;color:#8a95a6!important;margin:0 0 7px!important}
.profileListingActions{display:grid;grid-template-columns:1fr 30px;gap:5px;align-items:center;position:relative}
.profilePromoteBtn{height:31px;border:0;border-radius:9px;background:#dce8ff;color:#5582ef;font-size:9px;font-weight:800;cursor:pointer}
.profileMoreMenu{position:relative}
.profileMoreMenu summary{list-style:none;width:30px;height:31px;border-radius:9px;background:#f1f3f7;color:#344257;display:grid;place-items:center;cursor:pointer;font-weight:900;font-size:12px}
.profileMoreMenu summary::-webkit-details-marker{display:none}
.profileMoreMenuList{position:absolute;right:0;top:35px;z-index:25;width:170px;padding:6px;border-radius:11px;background:#fff;border:1px solid #e4e8ef;box-shadow:0 14px 35px rgba(22,37,58,.14)}
.profileMoreMenuList a,.profileMoreMenuList button,.profileMoreMenuList span{width:100%;min-height:34px;padding:8px 9px;border:0;border-radius:8px;background:transparent;color:#405064;font-size:9px;text-align:left;display:flex;align-items:center;cursor:pointer}
.profileMoreMenuList a:hover,.profileMoreMenuList button:hover{background:#f3f5f8}
.profileMoreMenuList .dangerText{color:#c55454;cursor:default}

/* Profile settings view: keep everything reachable without cluttering listings */
body.dashboardActive.profileSettingsOpen main.wrap{grid-template-columns:210px minmax(0,1fr)!important}
body.dashboardActive.profileSettingsOpen #mySection,
body.dashboardActive.profileSettingsOpen #favSection{display:none!important}
body.dashboardActive.profileSettingsOpen #accountAccessPanel{grid-column:1/-1!important;grid-row:1!important}
body.dashboardActive.profileSettingsOpen #activeProfilePanel{
  display:grid!important;grid-template-columns:210px minmax(0,1fr)!important;gap:20px!important;align-items:start!important;
}
body.dashboardActive.profileSettingsOpen #activeProfilePanel>.accountProfileSummary,
body.dashboardActive.profileSettingsOpen #activeProfilePanel>.profileIdentity,
body.dashboardActive.profileSettingsOpen #activeProfilePanel>.tapAccountBalance,
body.dashboardActive.profileSettingsOpen #activeProfilePanel>.tapProfileMenu{grid-column:1!important}
body.dashboardActive.profileSettingsOpen #activeProfilePanel>.emlakAvatarUploadCard,
body.dashboardActive.profileSettingsOpen #activeProfilePanel>.profileNameEditor,
body.dashboardActive.profileSettingsOpen #activeProfilePanel>.profilePinEditor,
body.dashboardActive.profileSettingsOpen #activeProfilePanel>.accountDangerActions{
  grid-column:2!important;display:block!important;margin:0 0 12px!important;background:#fff!important;border:1px solid #e6eaf0!important;border-radius:16px!important;padding:16px!important;
}
body.dashboardActive.profileSettingsOpen #activeProfilePanel>.accountDangerActions{display:flex!important}

@media(max-width:980px){
  body.dashboardActive main.wrap{grid-template-columns:180px minmax(0,1fr)!important;gap:14px!important}
  body.dashboardActive #myGrid,body.dashboardActive #favGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:760px){
  body.dashboardActive main.wrap{display:block!important;width:min(100% - 20px,1040px)!important;padding:16px 0 100px!important}
  body.dashboardActive #accountAccessPanel{margin-bottom:12px!important}
  body.dashboardActive #activeProfilePanel{background:#fff!important;border:1px solid #e7ebf1!important;border-radius:16px!important;padding:12px!important}
  body.dashboardActive .accountProfileSummary{padding:0!important;display:grid!important;grid-template-columns:48px 1fr!important;align-items:center!important}
  body.dashboardActive .accountProfileSummaryText{align-self:center!important}
  body.dashboardActive .profileIdentity,.tapAccountBalance{display:none!important}
  .tapProfileMenu{display:grid!important;grid-template-columns:repeat(4,1fr)!important;border-top:0!important;gap:5px!important;margin-top:8px!important;padding-top:0!important}
  .tapProfileMenuItem{height:38px!important;justify-content:center!important;padding:0 5px!important;gap:4px!important}
  .tapProfileMenuItem span{width:auto!important;font-size:13px!important}
  .tapProfileMenuItem b{font-size:8px!important}
  .tapProfileMenuItem.tapLogoutMenu{margin:0!important;padding:0!important;border:0!important;height:38px!important}
  body.dashboardActive #mySection,body.dashboardActive #favSection{padding:14px!important;border-radius:16px!important}
  body.dashboardActive #myGrid,body.dashboardActive #favGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 10px!important}
  body.dashboardActive #myGrid .pic,body.dashboardActive #favGrid .pic{height:130px!important}
  .myStatusTabs{overflow:auto!important;flex-wrap:nowrap!important;padding-bottom:2px!important;scrollbar-width:none!important}
  .myStatusTabs::-webkit-scrollbar{display:none!important}
  body.dashboardActive.profileSettingsOpen #activeProfilePanel{display:block!important}
  body.dashboardActive.profileSettingsOpen #activeProfilePanel>.emlakAvatarUploadCard,
  body.dashboardActive.profileSettingsOpen #activeProfilePanel>.profileNameEditor,
  body.dashboardActive.profileSettingsOpen #activeProfilePanel>.profilePinEditor,
  body.dashboardActive.profileSettingsOpen #activeProfilePanel>.accountDangerActions{display:block!important;margin-top:10px!important}
}

/* ===== 2026-10-14 USER CHAT / MESSAGES ===== */
.tapProfileMenuItem{position:relative}
.tapUnreadBadge,.chatNavUnread{
  min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ff673b;color:#fff;
  display:inline-grid;place-items:center;font-style:normal;font-size:8px;font-weight:1000;line-height:1
}
.tapUnreadBadge{margin-left:auto}
.hidden{display:none!important}

body.dashboardActive #messagesSection{
  grid-column:2!important;grid-row:1 / span 2!important;margin:0!important;padding:24px!important;
  border-radius:18px!important;background:#fff!important;border:1px solid #eceff4!important;min-width:0!important;box-shadow:none!important
}
body.dashboardActive #messagesSection.active{display:block!important}
body.dashboardActive.profileSettingsOpen #messagesSection{display:none!important}
.chatSetupNotice{padding:11px 13px;border-radius:12px;background:#fff3ee;border:1px solid #ffd6c7;color:#b64d2b;font-size:10px;line-height:1.55;margin-bottom:12px}
.chatShell{display:grid;grid-template-columns:285px minmax(0,1fr);min-height:560px;border:1px solid #e5e9f0;border-radius:16px;overflow:hidden;background:#fff}
.chatConversationList{border-right:1px solid #e7eaf0;background:#fafbfc;min-width:0}
.chatListHead{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;border-bottom:1px solid #e7eaf0}
.chatListHead b{font-size:12px;color:#243246}.chatListHead span{font-size:9px;color:#ff673b;font-weight:900}
#conversationList{max-height:508px;overflow:auto}
.chatConversation{width:100%;display:grid;grid-template-columns:45px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 11px;border:0;border-bottom:1px solid #edf0f4;background:transparent;text-align:left;cursor:pointer;color:#27364a}
.chatConversation:hover,.chatConversation.active{background:#f0f4fb}
.chatConversationThumb{width:45px;height:45px;border-radius:11px;overflow:hidden;background:#e9eef5;display:grid;place-items:center;font-size:16px;font-weight:900;color:#728096}
.chatConversationThumb img{width:100%;height:100%;object-fit:cover}
.chatConversationText{min-width:0;display:flex;flex-direction:column;gap:2px}.chatConversationText b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chatConversationText small{font-size:8px;color:#7e899a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chatConversationText em{font-style:normal;font-size:8px;color:#9aa3b0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chatConversationMeta{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.chatConversationMeta time{font-size:7px;color:#a0a8b4;white-space:nowrap}.chatConversationMeta i{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ff673b;color:#fff;display:grid;place-items:center;font-size:7px;font-style:normal;font-weight:1000}
.chatLoading,.chatNoConversation{padding:28px 16px;text-align:center;color:#8792a4;font-size:10px;line-height:1.5}.chatNoConversation b{display:block;color:#435064;font-size:11px;margin-bottom:5px}.chatNoConversation p{margin:0}
.chatPanel{min-width:0;background:#fff;position:relative}.chatEmpty{height:100%;min-height:560px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#8c96a5;padding:25px}.chatEmpty>span{width:54px;height:54px;border-radius:18px;background:#fff1eb;color:#e2643a;display:grid;place-items:center;font-size:25px;margin-bottom:12px}.chatEmpty b{font-size:14px;color:#324055}.chatEmpty p{max-width:330px;font-size:10px;line-height:1.6;margin:6px 0 0}
.chatActive{height:560px;display:grid;grid-template-rows:56px minmax(0,1fr) auto}
.chatHeader{position:static!important;height:56px!important;display:flex!important;align-items:center!important;gap:9px!important;padding:0 12px!important;border-bottom:1px solid #e7eaf0!important;background:#fff!important;box-shadow:none!important;backdrop-filter:none!important}
.chatBack{display:none;width:32px;height:32px;border:0;border-radius:9px;background:#f1f3f7;color:#546276;font-size:22px;cursor:pointer}.chatOtherAvatar{width:36px;height:36px;border-radius:11px;background:#fff0e9;color:#dc643b;display:grid;place-items:center;font-size:13px;font-weight:1000}.chatHeaderText{min-width:0;display:flex;flex-direction:column}.chatHeaderText b{font-size:11px;color:#243246}.chatHeaderText a{font-size:8px;color:#5b82e9;margin-top:2px}
.chatMessages{padding:14px;overflow:auto;background:#f5f7fa;display:flex;flex-direction:column;gap:7px}.chatBubbleRow{display:flex}.chatBubbleRow.mine{justify-content:flex-end}.chatBubble{max-width:min(74%,460px);padding:8px 10px 6px;border-radius:13px 13px 13px 4px;background:#fff;border:1px solid #e4e8ef;box-shadow:0 2px 6px rgba(27,42,64,.03)}.chatBubbleRow.mine .chatBubble{border-radius:13px 13px 4px 13px;background:#fff0e9;border-color:#ffd8c8}.chatBubble p{margin:0;font-size:10px;line-height:1.48;color:#2b394c;white-space:pre-wrap;overflow-wrap:anywhere}.chatBubble time{display:block;text-align:right;font-size:7px;color:#98a1af;margin-top:4px}.chatNoMessages{margin:auto;color:#8d97a5;font-size:10px}
.chatComposer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px;border-top:1px solid #e7eaf0;background:#fff}.chatComposer textarea{min-height:42px;max-height:110px;resize:vertical;border:1px solid #dfe5ed;border-radius:12px;background:#f8f9fb;color:#27364a;padding:11px 12px;outline:none;font:inherit;font-size:10px;line-height:1.45}.chatComposer textarea:focus{border-color:#f0aa8e;box-shadow:0 0 0 3px rgba(229,102,60,.08)}.chatComposer button{height:42px;padding:0 16px;border:0;border-radius:12px;background:linear-gradient(135deg,#ff7b50,#e76036);color:#fff;font-size:10px;font-weight:900;cursor:pointer}.chatComposer button:disabled{opacity:.55}

@media(max-width:980px){body.dashboardActive #messagesSection{grid-column:2!important}.chatShell{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:760px){
  .tapProfileMenu{grid-template-columns:repeat(5,1fr)!important}
  body.dashboardActive #messagesSection{padding:0!important;border-radius:16px!important;overflow:hidden!important}
  body.dashboardActive #messagesSection>.sectionHead{padding:14px 14px 0!important}
  .chatShell{display:block;min-height:540px;border:0;border-radius:0}.chatConversationList{border:0}.chatListHead{height:48px}.chatConversation{grid-template-columns:44px minmax(0,1fr) auto;padding:10px 12px}.chatConversationThumb{width:44px;height:44px}.chatPanel{display:none}.chatShell.chatOpen .chatConversationList{display:none}.chatShell.chatOpen .chatPanel{display:block}.chatShell.chatOpen .chatActive{height:560px}.chatBack{display:grid;place-items:center}.chatEmpty{display:none}.chatBubble{max-width:84%}.chatComposer{padding-bottom:14px}
  .chatMobileNav{display:grid!important;grid-template-columns:repeat(5,1fr)!important;left:0!important;right:0!important;bottom:0!important;border-radius:22px 22px 0 0!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important}
  .chatMobileNav a{position:relative;height:55px!important;font-size:8px!important}.chatMobileNav .mobileAdd{height:64px!important;transform:translateY(-13px)!important;border-radius:18px!important;background:linear-gradient(135deg,#ff7b50,#e76036)!important;color:#fff!important}
  .chatNavUnread{position:absolute;right:9px;top:3px}
}
