/* ===== Engaz-style design layer for Aqarat Pro (light theme default) ===== */
body.light-theme {
  --eg-navy: #0f1a3d; --eg-navy2: #18265a; --eg-bg: #f3f5fa;
  --bg-gradient: #f3f5fa;
}
body.light-theme .app-container { background: var(--eg-bg); }
body.light-theme .sidebar { background: var(--eg-navy); border-left: none; color: #c8d0e8; overflow-y: auto; }
body.light-theme .sidebar-header { border-bottom: 1px solid rgba(255,255,255,.08); }
body.light-theme .logo-text h1 { color: #fff; }
body.light-theme .logo-text span { color: #8f9bc2; }
body.light-theme .menu-item { color: #c3cbe6; border-radius: 10px; }
body.light-theme .menu-item:hover { background: rgba(255,255,255,.07); color: #fff; }
body.light-theme .menu-item.active { background: var(--eg-navy2); color: #fff; box-shadow: inset -3px 0 0 #6f8cff; }
body.light-theme .menu-item.active i { color: #8fa6ff; }
.menu-group-title { font-size: 11px; color: #7d8ab3; font-weight: 800; letter-spacing: .5px; padding: 14px 16px 6px; list-style: none; }
body:not(.light-theme) .menu-group-title { color: #64748b; }
body.light-theme .sidebar-footer .btn { background: rgba(255,255,255,.08); color: #fff; border: none; }
body.light-theme .top-bar { background: #fff; border-bottom: 1px solid #e6eaf2; box-shadow: 0 1px 0 rgba(15,26,61,.03); }
body.light-theme .main-content { background: var(--eg-bg); }

.eg-gsearch { position: relative; flex: 1; max-width: 420px; margin: 0 16px; }
.eg-gsearch input { width: 100%; box-sizing: border-box; border: 1px solid #e2e6ef; background: #f7f9fc; border-radius: 10px; padding: 9px 38px 9px 12px; font-family: inherit; font-size: 13px; outline: none; color: #1a2340; }
.eg-gsearch i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #94a0bb; }
.eg-gsearch-res { position: absolute; top: 44px; right: 0; left: 0; background: #fff; border: 1px solid #e2e6ef; border-radius: 12px; box-shadow: 0 12px 32px rgba(15,26,61,.14); max-height: 360px; overflow: auto; z-index: 90; display: none; }
.eg-gsearch-res div { padding: 10px 14px; border-bottom: 1px solid #eef1f7; cursor: pointer; font-size: 13px; color: #1a2340; display: flex; justify-content: space-between; gap: 8px; }
.eg-gsearch-res div:hover { background: #f3f6ff; }
.eg-gsearch-res small { color: #7a869e; }

.eg-page { padding: 22px 28px 40px; color: #1a2340; }
.eg-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.eg-head h1 { font-size: 24px; font-weight: 800; margin: 0; color: #1a2340; }
.eg-head p { margin: 2px 0 0; color: #7a869e; font-size: 13px; }
.eg-btnrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eg-btn { font-family: inherit; font-size: 13px; font-weight: 700; border: 1px solid #dbe1ee; background: #fff; color: #1a2340; padding: 8px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: .15s; white-space: nowrap; text-decoration: none; }
.eg-btn:hover { background: #f3f6ff; border-color: #c4cff0; }
.eg-btn.primary { background: #2f5bff; border-color: #2f5bff; color: #fff; }
.eg-btn.primary:hover { background: #2249dd; }
.eg-btn.green { background: #0a9d7a; border-color: #0a9d7a; color: #fff; }
.eg-btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.eg-btn.danger { color: #d93a3a; border-color: #f2c9c9; }
.eg-btn.danger:hover { background: #fff1f1; }
.eg-btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.eg-btn.pv { background: #e8eeff; border-color: #e8eeff; color: #2f5bff; padding: 6px 16px; }
.eg-btn.pv:hover { background: #d8e2ff; }
.eg-btn:disabled { opacity: .5; cursor: not-allowed; }
.eg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.eg-card { background: #fff; border: 1px solid #e6eaf2; border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 2px rgba(15,26,61,.04); }
.eg-card h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #1a2340; }
.eg-stat { display: flex; justify-content: space-between; align-items: flex-end; }
.eg-stat b { font-size: 30px; font-weight: 800; line-height: 1; color: #1a2340; }
.eg-stat span { font-size: 12px; font-weight: 800; color: #0a9d7a; }
.eg-stat span.red { color: #d93a3a; }
.eg-stat small { display: block; color: #7a869e; font-size: 11px; margin-top: 6px; font-weight: 600; }
.eg-grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 1000px) { .eg-grid2 { grid-template-columns: 1fr; } .eg-page { padding: 16px 12px 40px; } }
.eg-panel { background: #fff; border: 1px solid #e6eaf2; border-radius: 14px; box-shadow: 0 1px 2px rgba(15,26,61,.04); overflow: hidden; margin-bottom: 18px; }
.eg-panel-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #eef1f7; gap: 10px; flex-wrap: wrap; }
.eg-panel-h h3 { margin: 0; font-size: 15px; font-weight: 800; color: #1a2340; }
.eg-panel-b { padding: 16px 18px; }
.eg-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e6eaf2; padding: 0 14px; overflow-x: auto; background: #fff; }
.eg-tab { padding: 12px 14px; font-size: 13px; font-weight: 700; color: #7a869e; cursor: pointer; border: 0; border-bottom: 2px solid transparent; white-space: nowrap; display: flex; gap: 6px; align-items: center; background: none; font-family: inherit; }
.eg-tab:hover { color: #1a2340; }
.eg-tab.on { color: #0a9d7a; border-bottom-color: #0a9d7a; }
.eg-tab em { font-style: normal; background: #e6f6f1; color: #0a9d7a; border-radius: 999px; padding: 1px 8px; font-size: 11px; }
.eg-tab:not(.on) em { background: #eef1f7; color: #7a869e; }
.eg-toolbar { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 14px; align-items: center; border-bottom: 1px solid #eef1f7; background: #fbfcfe; }
.eg-toolbar input, .eg-toolbar select, .eg-in { font-family: inherit; font-size: 13px; border: 1px solid #dbe1ee; background: #fff; border-radius: 9px; padding: 8px 11px; color: #1a2340; outline: none; min-width: 0; }
.eg-toolbar input:focus, .eg-toolbar select:focus, .eg-in:focus { border-color: #2f5bff; box-shadow: 0 0 0 3px rgba(47,91,255,.12); }
.eg-toolbar .sp { flex: 1; }
.eg-tw { overflow-x: auto; }
table.eg-t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.eg-t th { background: #f6f8fc; color: #5b6784; font-weight: 800; text-align: right; padding: 11px 14px; font-size: 12px; border-bottom: 1px solid #e6eaf2; white-space: nowrap; }
table.eg-t td { padding: 12px 14px; border-bottom: 1px solid #eef1f7; color: #1a2340; vertical-align: middle; }
table.eg-t tr:hover td { background: #fafbff; }
table.eg-t td.nm { font-weight: 700; }
.ltr { direction: ltr; unicode-bidi: plaintext; text-align: right; }
.eg-empty { text-align: center; padding: 44px 16px; color: #94a0bb; font-size: 14px; }
.eg-empty i { font-size: 44px; display: block; margin-bottom: 8px; color: #c4cce0; }
.eg-chip { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: #eef1f7; color: #5b6784; white-space: nowrap; }
.eg-chip.fresh_stage { background: #e8eeff; color: #2f5bff; } .eg-chip.follow { background: #fff4de; color: #b76e00; }
.eg-chip.meeting { background: #e6f6f1; color: #0a9d7a; } .eg-chip.reservation { background: #f1e8ff; color: #7c3aed; }
.eg-chip.deal, .eg-chip.Sold { background: #dff5e8; color: #14803c; } .eg-chip.cancel, .eg-chip.Block { background: #ffe8e8; color: #d93a3a; }
.eg-chip.Available { background: #e6f6f1; color: #0a9d7a; } .eg-chip.Reserved { background: #f1e8ff; color: #7c3aed; }
.eg-chip.Hold { background: #fff4de; color: #b76e00; } .eg-chip.Rent, .eg-chip.Furnished { background: #e8eeff; color: #2f5bff; }
.eg-lbl { font-size: 12px; font-weight: 700; color: #5b6784; margin-bottom: 4px; display: block; }
.eg-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 14px; }
.eg-form .full { grid-column: 1 / -1; }
.eg-form .eg-in, .eg-form textarea { width: 100%; box-sizing: border-box; }
.eg-form textarea { font-family: inherit; font-size: 13px; color: #1a2340; background: #fff; border: 1px solid #dbe1ee; border-radius: 9px; padding: 9px 11px; min-height: 70px; resize: vertical; outline: none; }
.eg-form h5 { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 10px; border-top: 1px dashed #e0e5f0; font-size: 13px; color: #2f5bff; font-weight: 800; }
@media (max-width: 640px) { .eg-form { grid-template-columns: 1fr; } }
.eg-req { color: #d93a3a; }
.eg-ov { position: fixed; inset: 0; background: rgba(15,26,61,.5); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 3vh 12px; overflow: auto; }
.eg-md { background: #fff; width: 100%; max-width: 640px; border-radius: 16px; box-shadow: 0 24px 60px rgba(15,26,61,.35); color: #1a2340; margin: auto 0; animation: egpop .18s ease; }
.eg-md.wide { max-width: 980px; } .eg-md.xl { max-width: 1120px; }
@keyframes egpop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.eg-md-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eef1f7; position: sticky; top: 0; background: #fff; border-radius: 16px 16px 0 0; z-index: 2; }
.eg-md-h h3 { margin: 0; font-size: 17px; font-weight: 800; color: #1a2340; }
.eg-x { border: none; background: #f1f4fa; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; cursor: pointer; color: #5b6784; }
.eg-md-b { padding: 18px 20px; } .eg-md-f { padding: 14px 20px; border-top: 1px solid #eef1f7; display: flex; gap: 8px; flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; border-radius: 0 0 16px 16px; }
.eg-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; }
.eg-kv div small { display: block; color: #7a869e; font-size: 11.5px; font-weight: 700; margin-bottom: 2px; }
.eg-kv div span { font-size: 13.5px; font-weight: 700; color: #1a2340; word-break: break-word; }
.eg-tl { border-right: 2px solid #e6eaf2; margin-right: 8px; padding-right: 16px; }
.eg-tl-i { position: relative; margin-bottom: 14px; }
.eg-tl-i:before { content: ''; position: absolute; right: -23px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #2f5bff; border: 2px solid #fff; box-shadow: 0 0 0 1px #2f5bff; }
.eg-tl-i small { color: #7a869e; font-size: 11.5px; } .eg-tl-i p { margin: 3px 0 0; font-size: 13px; }
.eg-bar { height: 8px; background: #eef1f7; border-radius: 99px; overflow: hidden; } .eg-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f5bff, #6f8cff); border-radius: 99px; }
.eg-row { display: grid; grid-template-columns: 130px 1fr 40px; gap: 10px; align-items: center; font-size: 12.5px; margin-bottom: 9px; }
.eg-row b { text-align: left; }
.eg-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.eg-gal .ph { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 1px solid #e6eaf2; background: #f3f5fa; }
.eg-gal .ph img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.eg-gal .ph .rm { position: absolute; top: 4px; left: 4px; background: rgba(15,26,61,.75); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 13px; }
.eg-gal .ph .mn { position: absolute; bottom: 4px; right: 4px; left: 4px; background: rgba(15,26,61,.7); color: #fff; border: none; border-radius: 6px; font-size: 10.5px; cursor: pointer; padding: 2px; font-family: inherit; }
.eg-gal .ph.main { outline: 2px solid #0a9d7a; }
.eg-drop { border: 2px dashed #c4cff0; border-radius: 12px; padding: 18px; text-align: center; color: #5b6784; cursor: pointer; background: #f8faff; font-size: 13px; }
.eg-drop:hover { background: #eef3ff; }
.eg-map { width: 100%; height: 280px; border-radius: 12px; border: 1px solid #dbe1ee; overflow: hidden; background: #eef1f7; }
.eg-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1a2340; color: #fff; padding: 11px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 700; z-index: 400; box-shadow: 0 8px 24px rgba(15,26,61,.3); }
.eg-toast.err { background: #d93a3a; }
.eg-stars i { cursor: pointer; font-size: 20px; color: #d3d9e8; } .eg-stars i.on { color: #f5b301; }
.eg-sw { position: relative; display: inline-block; width: 38px; height: 22px; } .eg-sw input { display: none; }
.eg-sw span { position: absolute; inset: 0; background: #cfd6e6; border-radius: 99px; cursor: pointer; transition: .2s; }
.eg-sw span:before { content: ''; position: absolute; width: 16px; height: 16px; right: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.eg-sw input:checked + span { background: #0a9d7a; } .eg-sw input:checked + span:before { transform: translateX(-16px); }
.eg-hint { color: #7a869e; font-size: 12px; }
.eg-note { background: #fff8e6; border: 1px solid #f6e2a8; color: #8a5a00; border-radius: 10px; padding: 10px 14px; font-size: 12.5px; margin-bottom: 14px; }
.eg-av { width: 34px; height: 34px; border-radius: 50%; background: #e8eeff; color: #2f5bff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-left: 8px; vertical-align: middle; }
.eg-uc { border: 1px solid #e6eaf2; border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.eg-login-note { font-size: 12px; color: #7a869e; }

/* social command center */
.so-card { border: 1px solid #e6eaf2; border-radius: 12px; background: #fff; overflow: hidden; max-width: 520px; margin: 0 auto; }
.so-ph { display: flex; gap: 10px; align-items: center; padding: 12px 14px; }
.so-av { width: 38px; height: 38px; border-radius: 50%; background: #1877f2; color: #fff; display: grid; place-items: center; font-weight: 800; }
.so-tx { padding: 0 14px 12px; font-size: 14px; line-height: 1.7; white-space: normal; word-break: break-word; }
.so-lk { margin: 0 14px 10px; padding: 8px 10px; background: #f3f5fa; border-radius: 8px; font-size: 12px; color: #5b6784; direction: ltr; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.so-imgs { display: grid; gap: 2px; } .so-imgs div { background-size: cover; background-position: center; min-height: 150px; position: relative; display: grid; place-items: center; color: #fff; font-size: 26px; }
.so-imgs.n1 { grid-template-columns: 1fr; } .so-imgs.n1 div { min-height: 280px; } .so-imgs.n2, .so-imgs.n4 { grid-template-columns: 1fr 1fr; } .so-imgs.n3 { grid-template-columns: 1fr 1fr; } .so-imgs.n3 div:first-child { grid-column: span 2; }
.so-imgs b { position: absolute; inset: 0; background: rgba(0,0,0,.5); display: grid; place-items: center; }
.so-ft { display: flex; justify-content: space-around; padding: 10px; border-top: 1px solid #eef1f7; color: #7a869e; font-size: 13px; margin-top: 8px; }
.so-bars { display: flex; gap: 2px; align-items: flex-end; height: 70px; margin: 8px 0; direction: ltr; } .so-bars i { flex: 1; background: #2f5bff; border-radius: 2px 2px 0 0; min-height: 3px; }
.eg-th { position: relative; display: inline-block; margin: 0 0 6px 6px; } .eg-th img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid #e6eaf2; } .eg-th button { position: absolute; top: -6px; left: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #d93a3a; color: #fff; cursor: pointer; line-height: 1; }
