:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --navy: #0c1f3f;
  --navy-deep: #061226;
  --cyan: #48d8ec;
  --teal: #007783;
  --text: #071426;
  --muted: #6b7280;
  --line: #d8e0ee;
  --shadow: 0 18px 40px rgba(12, 31, 63, .08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Cairo", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.material-symbols-outlined { font-size: 24px; vertical-align: middle; }
.hidden { display: none !important; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #eaf1ff;
}
.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px;
  color: #fff;
  background:
    radial-gradient(circle at 35% 65%, rgba(72, 216, 236, .18), transparent 28%),
    linear-gradient(145deg, var(--navy), #08172f);
  overflow: hidden;
}
.brand-mark {
  position: absolute;
  top: 31%;
  opacity: .09;
  font-size: 92px;
  font-weight: 900;
  letter-spacing: 1px;
}
.brand-logo {
  position: absolute;
  top: 22%;
  width: min(360px, 58vw);
  opacity: .08;
  filter: brightness(0) invert(1);
}
.brand-panel h1 { max-width: 520px; margin: 0; font-size: 54px; line-height: 1.2; text-align: center; }
.brand-panel p { margin: 22px 0 36px; color: #91a1bd; font-size: 20px; }
.brand-panel small { position: absolute; bottom: 38px; color: rgba(255,255,255,.2); letter-spacing: 3px; text-transform: uppercase; }
.feature-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.feature-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(72, 216, 236, .45);
  border-radius: 999px;
  color: #fff;
}
.feature-row i { color: var(--cyan); font-size: 20px; }

.login-card {
  align-self: center;
  justify-self: center;
  width: min(520px, calc(100% - 40px));
  padding: 46px;
  background: var(--surface);
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.login-card h2 { margin: 0 0 8px; font-size: 34px; }
.login-card p { margin: 0 0 28px; color: #424957; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: #202838; }
.split-label { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.split-label a { color: var(--teal); text-decoration: none; font-size: 14px; }
.input-icon { position: relative; }
.input-icon input, .field input, .field select, .form-grid input, .search input {
  width: 100%;
  height: 52px;
  border: 1px solid #bac4d4;
  border-radius: 12px;
  background: #eef4ff;
  padding: 0 44px 0 18px;
  outline: none;
}
.input-icon i { position: absolute; right: 14px; top: 14px; color: #374151; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
}
.accent-btn { width: 100%; margin-top: 28px; background: var(--cyan); color: #06414a; box-shadow: 0 14px 26px rgba(72, 216, 236, .28); }
.ghost-btn { width: 100%; background: transparent; color: var(--teal); }
.primary-dark { background: var(--navy); color: #fff; padding: 0 22px; }
.divider { height: 1px; background: var(--line); margin: 26px 0; }
.note { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 10px; background: #edf3ff; color: #7b8190; }

.portal { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(12,31,63,.08);
}
.logo-block { padding: 26px 28px 32px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.logo-block img {
  width: 128px;
  height: 76px;
  object-fit: contain;
  margin: 0 auto 8px;
  filter: brightness(0) invert(1);
}
.logo-block strong { display: block; font-size: 32px; font-weight: 900; }
.logo-block span { color: #8ea0c2; letter-spacing: 1px; }
.sidebar nav { padding-top: 18px; }
.nav-link, .side-footer button {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.74);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 26px;
  font-weight: 700;
}
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-left: 5px solid var(--cyan);
}
.new-investment {
  margin: auto 20px 18px;
  height: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--cyan);
  color: #051c25;
  font-weight: 900;
}
.side-footer { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }

.workspace { min-width: 0; }
.topbar {
  height: 82px;
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 0 34px;
  background: #fff;
  border-bottom: 1px solid #e7edf7;
}
.profile-pill { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.profile-pill img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid #dce6f6; }
.profile-pill span { display: block; font-size: 12px; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; }
.search { position: relative; width: 260px; }
.search i { position: absolute; right: 14px; top: 14px; color: #6b7280; }

.screen { display: none; padding: 34px; max-width: 1440px; margin: 0 auto; }
.active-screen { display: block; }
.screen-title { margin-bottom: 24px; }
.screen-title h2 { margin: 0 0 6px; font-size: 32px; }
.screen-title p { margin: 0; color: var(--muted); }
.dashboard-banner {
  position: relative;
  min-height: 255px;
  margin-bottom: 24px;
  padding: 34px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 18, 36, .96) 0%, rgba(8, 18, 36, .78) 42%, rgba(8, 18, 36, .35) 100%),
    url("https://lh3.googleusercontent.com/aida-public/AB6AXuBlwyZul0vRoSL-NadBOYZPPSJXFuB7srzDx4woKIvBYkJHyT5KThlpB7G9gsHuQUB7udbHH3p14C4uYinEEtJ8E19CngQXtc5v1ier12OzoquWJuGB04Bu-KEoQrat2_yZvR11VhZwpyIoOQQTz2q7Qd_2H-SLRtUoXAAt2R53JhSp-Nf8G3xIYgRmXsp1tRUgNbCrYoxWweQIgBR91O5-0jG3RmwrOXVRYUUCA2IbfCe3WOHquOpIHSZBAlFsLSyPedZrgNrPXkE") center/cover;
  box-shadow: var(--shadow);
}
.dashboard-banner > div { max-width: 560px; }
.dashboard-banner span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 14px;
  border: 1px solid rgba(72,216,236,.6);
  border-radius: 999px;
  color: #baf6ff;
  font-size: 13px;
  font-weight: 800;
}
.dashboard-banner h3 { margin: 0; font-size: 34px; line-height: 1.25; }
.dashboard-banner p { max-width: 500px; color: #d8e2f4; line-height: 1.8; }
.banner-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.dashboard-banner .accent-btn { width: auto; min-width: 190px; margin-top: 0; padding: 0 22px; }
.banner-outline {
  height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 900;
}
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.metric {
  position: relative;
  min-height: 118px;
  padding: 20px 22px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.metric:after { display: none; }
.metric i { padding: 10px; border-radius: 10px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, white); }
.metric strong { display: block; margin-top: 14px; font-size: 30px; line-height: 1; }
.metric span { color: #273243; }
.metric small { font-size: 15px; color: #272d38; }
.green { --accent: #16b85f; } .cyan { --accent: #38d9f0; } .amber { --accent: #f59e0b; } .navy { --accent: #0c1f3f; }

.panel {
  background: #fff;
  border: 1px solid #edf1f7;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.acceptance-panel {
  margin-top: 24px;
  padding: 24px;
}
.acceptance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.acceptance-head span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--teal);
  font-weight: 900;
}
.acceptance-head h3 {
  margin: 0;
  font-size: 26px;
}
.score-chip {
  min-width: 108px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-weight: 900;
}
.score-chip b {
  color: var(--cyan);
  font-size: 30px;
}
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.criterion {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid #e1e8f3;
  border-radius: 14px;
  background: #fbfdff;
}
.criterion i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e8f7fb;
  color: var(--teal);
}
.criterion strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.criterion p {
  margin: 0;
  color: #5b6473;
  font-size: 13px;
  line-height: 1.65;
}
.criterion > span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--navy);
  font-weight: 900;
  font-size: 12px;
}
.criterion.strong {
  border-color: rgba(0, 119, 131, .26);
  background: linear-gradient(180deg, #fbfdff, #f1fbfd);
}
.criterion.warning i {
  background: #fff4df;
  color: #b36b00;
}
.sector-rules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.sector-rules span {
  min-height: 92px;
  padding: 14px;
  border-radius: 13px;
  background: #eef4ff;
  color: #455064;
  font-size: 13px;
  line-height: 1.7;
}
.sector-rules b {
  display: block;
  color: var(--navy);
  font-size: 14px;
}
.review-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #071426;
  color: #dbeafe;
}
.review-note i {
  color: var(--cyan);
}
.review-note.updated {
  background: #063f46;
}
.status-panel { margin-top: 34px; padding: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 28px; border-bottom: 1px solid #dfe8f6; }
.panel-heading h3, .section-head h3 { margin: 0; font-size: 26px; }
.panel-heading span { background: var(--navy); color: #fff; padding: 6px 12px; border-radius: 8px; }
.status-grid { display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding: 40px; align-items: center; }
.mini-card { padding: 26px; border-radius: 14px; background: #edf3ff; }
.mini-card strong { display: block; font-size: 22px; margin-bottom: 8px; }
.mini-card span { color: #4d5666; }
.text-link { margin-top: 18px; border: 0; background: transparent; color: var(--teal); font-weight: 800; }
.progress-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.progress-track:before { content: ""; position: absolute; left: 8%; right: 8%; top: 24px; height: 4px; background: linear-gradient(to left, var(--cyan) 65%, #dfe7f5 65%); }
.step { position: relative; text-align: center; padding-top: 58px; color: #263043; }
.step:before { content: ""; position: absolute; top: 0; left: 50%; width: 48px; height: 48px; transform: translateX(-50%); border-radius: 50%; background: #e8f0ff; border: 3px solid #e8f0ff; }
.step.done:before { background: #087884; border-color: #087884; }
.step.current:before { background: #f59e0b; border-color: #f59e0b; }
.step em { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); color: #fff; font-style: normal; font-weight: 900; z-index: 1; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 38px 0 18px; }
.outline-btn {
  height: 44px;
  border: 1px solid var(--teal);
  background: #fff;
  color: var(--teal);
  border-radius: 10px;
  padding: 0 18px;
  font-weight: 800;
}
.wide { width: 100%; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.spaces-grid { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
.space-card {
  background: #fff;
  border: 1px solid #dce3ee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.space-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.space-card .body { padding: 22px; }
.space-card h4 { margin: 0 0 8px; font-size: 22px; }
.space-meta { display: flex; gap: 16px; color: #4b5563; flex-wrap: wrap; }
.space-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.space-stats strong { display: block; color: var(--text); }
.card-actions { display: flex; gap: 12px; }
.card-actions button { flex: 1; height: 44px; border-radius: 10px; font-weight: 800; }
.badge { position: absolute; top: 16px; right: 16px; padding: 6px 14px; border-radius: 999px; background: #dffbea; color: #08723c; font-weight: 800; }
.image-wrap { position: relative; }

.filters { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 18px; padding: 24px; margin-bottom: 28px; align-items: end; }
.field label { font-size: 14px; }
.content-split { display: grid; grid-template-columns: 330px 1fr; gap: 26px; align-items: start; }
.map-panel { padding: 24px; }
.map-panel h3 { margin-top: 0; }
.floor-map { position: relative; height: 310px; border: 1px solid #bac5d4; border-radius: 12px; background: #f5f8fe; margin-bottom: 22px; overflow: hidden; }
.floor-map span { position: absolute; background: #d2f7ff; }
.floor-map span:nth-child(1) { width: 56px; height: 88px; right: 70px; top: 80px; }
.floor-map span:nth-child(2) { width: 36px; height: 36px; left: 84px; top: 76px; }
.floor-map span:nth-child(3) { width: 74px; height: 110px; right: 150px; bottom: 72px; background: #edf1f7; }
.floor-map span:nth-child(4) { width: 60px; height: 56px; left: 60px; bottom: 98px; }
.floor-map small { position: absolute; bottom: 18px; right: 50%; transform: translateX(50%); background: #fff; padding: 10px 20px; border-radius: 10px; box-shadow: var(--shadow); }
.insight { margin-top: 24px; padding: 22px; border-radius: 14px; background: var(--navy); color: #fff; }
.insight p { color: #d4def3; }
.insight b { color: var(--cyan); }

.breadcrumb { margin-bottom: 24px; font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: 330px 1fr; gap: 26px; align-items: start; }
.score-card { background: var(--navy); color: #fff; border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.score-card h3 { font-size: 24px; margin-top: 0; }
.score-ring { width: 150px; height: 150px; border-radius: 50%; margin: 16px auto 28px; display: grid; place-items: center; background: conic-gradient(var(--cyan) 82%, rgba(255,255,255,.15) 0); }
.score-ring span { width: 116px; height: 116px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; font-size: 30px; font-weight: 900; color: var(--cyan); }
.score-card ul { padding: 0; list-style: none; display: grid; gap: 16px; }
.score-card li { display: flex; justify-content: space-between; gap: 10px; }
.gallery { display: grid; grid-template-columns: 1fr 160px; gap: 18px; margin-bottom: 24px; }
.hero-img { width: 100%; height: 405px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.thumb-stack { display: grid; gap: 18px; }
.thumb-stack span { border-radius: 12px; background: linear-gradient(135deg, #283747, #d8eef4); }
.detail-card { padding: 34px; }
.detail-card h2 { font-size: 34px; margin: 0; }
.available-dot { display: inline-block; margin: 8px 0 26px; color: var(--teal); font-weight: 900; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts small { display: block; color: var(--muted); }
.facts strong { font-size: 23px; }
.detail-card p { color: #3e4655; line-height: 1.9; font-size: 18px; }

.wizard { display: grid; grid-template-columns: repeat(4, 1fr); margin: 28px 0; text-align: center; color: #6b7280; }
.wizard span { position: relative; font-weight: 700; }
.wizard span:before { content: ""; display: block; width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 50%; background: #e5edf8; border: 2px solid #bec8d8; }
.wizard .active { color: var(--teal); }
.wizard .active:before { background: var(--teal); border-color: var(--teal); }
.form-layout { display: grid; grid-template-columns: 330px 1fr; gap: 26px; align-items: start; }
.help-card, .summary-card { padding: 26px; border-radius: 16px; margin-bottom: 24px; }
.help-card { background: var(--navy); color: #fff; box-shadow: var(--shadow); font-size: 20px; font-weight: 800; }
.help-card p { color: #aebbd1; font-size: 15px; font-weight: 500; }
.help-card button { border: 0; background: transparent; color: var(--cyan); font-weight: 900; }
.summary-card { background: #dceaff; border: 1px solid #c5d8f6; }
.summary-card small { color: #e22d42; }
.application-form { display: grid; gap: 24px; }
.application-form .panel { padding: 30px; }
.application-form h3 { display: flex; gap: 10px; align-items: center; margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.full { grid-column: 1 / -1; }
.uploads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.uploads div { min-height: 150px; display: grid; place-items: center; text-align: center; border: 2px dashed #bfc9d9; border-radius: 14px; background: #eef4ff; }
.uploads i { background: #fff; padding: 12px; border-radius: 50%; }
.uploads button { border: 0; background: #d5f5fb; color: var(--teal); border-radius: 999px; padding: 6px 18px; font-weight: 900; }
.form-actions { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); }

.rating-board { display: grid; grid-template-columns: 360px 1fr; gap: 26px; }
.rating-main { min-height: 320px; border-radius: 18px; background: var(--navy); color: #fff; display: grid; place-items: center; align-content: center; text-align: center; box-shadow: var(--shadow); }
.rating-main strong { font-size: 96px; color: var(--cyan); line-height: 1; }
.rating-main p { max-width: 260px; color: #d7e3f8; }
.bars { padding: 34px; display: grid; gap: 28px; }
.bars label { position: relative; padding-bottom: 18px; }
.bars label:before, .bars b { content: ""; position: absolute; bottom: 0; right: 0; height: 10px; border-radius: 999px; }
.bars label:before { width: 100%; background: #edf3ff; }
.bars b { width: var(--w); background: var(--cyan); }
.bars span { float: left; color: var(--teal); }

.chat-panel { min-height: 560px; display: grid; grid-template-columns: 260px 1fr; overflow: hidden; }
.chat-panel aside { background: #f3f7ff; padding: 20px; display: grid; align-content: start; gap: 10px; }
.chat-panel aside button { height: 50px; border: 0; border-radius: 10px; background: transparent; font-weight: 800; }
.chat-panel aside .active { background: #fff; color: var(--teal); box-shadow: var(--shadow); }
.chat-window { padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.msg { max-width: 62%; padding: 16px 18px; border-radius: 18px; line-height: 1.7; }
.incoming { align-self: flex-start; background: #eef4ff; }
.outgoing { align-self: flex-end; background: var(--navy); color: #fff; }
.composer { margin-top: auto; display: flex; gap: 12px; }
.composer input { flex: 1; height: 54px; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.composer button { width: 54px; border: 0; border-radius: 14px; background: var(--cyan); }

@media (max-width: 1100px) {
  .portal { grid-template-columns: 82px 1fr; }
  .logo-block span, .nav-link span, .side-footer span, .new-investment { display: none; }
  .logo-block img { width: 42px; height: 42px; }
  .logo-block strong { font-size: 18px; }
  .metrics, .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .criteria-grid, .sector-rules { grid-template-columns: repeat(2, 1fr); }
  .content-split, .detail-layout, .form-layout, .rating-board { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .login-page { grid-template-columns: 1fr; }
  .brand-panel { min-height: 42vh; padding: 36px 22px; }
  .brand-panel h1 { font-size: 34px; }
  .brand-panel small { display: none; }
  .portal { display: block; }
  .sidebar { position: fixed; right: 0; left: 0; bottom: 0; top: auto; height: 72px; z-index: 10; flex-direction: row; }
  .logo-block, .new-investment, .side-footer { display: none; }
  .sidebar nav { display: flex; width: 100%; padding: 0; }
  .nav-link { justify-content: center; padding: 0; }
  .nav-link.active { border-left: 0; border-top: 4px solid var(--cyan); }
  .topbar { padding: 0 18px; gap: 10px; }
  .search { display: none; }
  .screen { padding: 22px 16px 96px; }
  .metrics, .cards-grid, .spaces-grid, .filters, .facts, .form-grid, .uploads, .chat-panel { grid-template-columns: 1fr; }
  .criteria-grid, .sector-rules { grid-template-columns: 1fr; }
  .acceptance-head { align-items: stretch; flex-direction: column; }
  .dashboard-banner { min-height: 320px; padding: 24px; }
  .dashboard-banner h3 { font-size: 27px; }
  .status-grid { grid-template-columns: 1fr; padding: 22px; }
  .gallery { grid-template-columns: 1fr; }
  .thumb-stack { display: none; }
  .chat-panel aside { display: none; }
  .msg { max-width: 92%; }
}
