:root {
  --bg: #f4f8f7;
  --bg-soft: #e8f2ef;
  --surface: rgba(255,255,255,0.78);
  --surface-solid: #ffffff;
  --text: #102124;
  --muted: #5b6b6e;
  --line: rgba(2, 52, 58, 0.10);

  --primary: #02343a;
  --primary-2: #19bc95;
  --success: #19bc95;
  --warning: #5b9340;
  --danger: #dc2626;

  --shadow-sm: 0 8px 24px rgba(2, 52, 58, 0.06);
  --shadow-md: 0 16px 40px rgba(2, 52, 58, 0.10);
  --shadow-lg: 0 22px 60px rgba(2, 52, 58, 0.14);

  --radius-xs: 12px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 32px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --header-h: 76px;
  --bottom-nav-h: 78px;
  --desktop-sidebar-w: 110px;
  --desktop-sidebar-gap: 16px;
  --desktop-footer-safe-space: 170px;

  /* جديد */
  --page-max: 1700px;
  --page-gutter: 16px;
  --page-gutter-tablet: 24px;
  --page-gutter-desktop: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top right, rgba(25,188,149,.10), transparent 28%),
    radial-gradient(circle at top left, rgba(91,147,64,.08), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: 'Almarai', sans-serif;
  direction: rtl;
  overflow-x: hidden;
  min-height: 100%;
  max-width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + var(--safe-top));
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 18px);
}

body.drawer-open {
  overflow: hidden;
}

a,
button,
input,
select,
textarea {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  outline: none;
  border: none;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================
   APP MAIN
========================= */
.app-shell {
  width: 100%;
  min-height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-main {
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 18px 0 40px;
  flex: 1;
}

@media (min-width: 700px) {
  .app-main {
    width: min(var(--page-max), calc(100% - (var(--page-gutter-tablet) * 2)));
  }
}

@media (min-width: 1100px) {
  body {
    padding-bottom: 36px;
  }

  .app-main {
    width: min(var(--page-max), calc(100% - (var(--page-gutter-desktop) * 2)));
    padding-right: calc(var(--desktop-sidebar-w) + 28px);
    padding-bottom: var(--desktop-footer-safe-space);
  }
}

/* =========================
   HEADER
========================= */
.app-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  z-index: 5000;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(244, 248, 247, 0.82);
  border-bottom: 1px solid rgba(255,255,255,.45);
}

.app-header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  gap: 12px;
}

.header-action,
.header-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  transition: background .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.header-action:hover,
.header-avatar-btn:hover {
  background: rgba(255,255,255,.96);
}

.header-action .material-symbols-rounded,
.header-avatar-btn .material-symbols-rounded {
  font-size: 24px;
  pointer-events: none;
}

.header-brand {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-inline: 10px;
}

.header-brand img {
  width: auto;
  height: 44px;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(2, 52, 58, 0.08));
  margin: 0 auto;
}

@media (min-width: 700px) {
  .app-header-inner {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    width: min(var(--page-max), calc(100% - (var(--page-gutter-tablet) * 2)));
    gap: 16px;
  }

  .header-brand {
    padding-inline: 18px;
  }

  .header-brand img {
    height: 46px;
    max-width: 190px;
  }
}

@media (min-width: 1100px) {
  .app-header-inner {
    width: min(var(--page-max), calc(100% - (var(--page-gutter-desktop) * 2)));
    padding-right: calc(var(--desktop-sidebar-w) + 28px);
    grid-template-columns: 64px minmax(220px, 1fr) 64px;
    gap: 24px;
  }

  .header-action,
  .header-avatar-btn {
    width: 48px;
    height: 48px;
  }

  .header-brand {
    padding-inline: 28px;
  }

  .header-brand img {
    height: 48px;
    max-width: 220px;
  }
}

@media (min-width: 1400px) {
  .app-header-inner {
    grid-template-columns: 64px minmax(280px, 1fr) 64px;
    gap: 32px;
  }

  .header-brand img {
    max-width: 240px;
  }
}

@media (max-width: 600px) {
  .header-brand img {
    height: 38px;
    max-width: 150px;
  }
}

/* =========================
   DESKTOP SIDEBAR
========================= */
.app-sidebar {
  display: none;
}

@media (min-width: 1100px) {
  .app-sidebar {
    display: flex;
    position: fixed;
    right: 14px;
    top: calc(var(--header-h) + var(--safe-top) + var(--desktop-sidebar-gap));
    width: var(--desktop-sidebar-w);
    height: calc(100vh - (var(--header-h) + var(--safe-top) + var(--desktop-sidebar-gap)) - var(--desktop-footer-safe-space));
    min-height: 320px;
    max-height: calc(100vh - (var(--header-h) + var(--safe-top) + var(--desktop-sidebar-gap)) - var(--desktop-footer-safe-space));
    background: rgba(255,255,255,.80);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    z-index: 4500;
    padding: 18px 10px;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
  }

  .app-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .app-sidebar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--muted);
    gap: 6px;
    min-height: 74px;
    border-radius: 20px;
    transition: .18s ease;
    user-select: none;
  }

  .app-sidebar-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  .app-sidebar-link span {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
  }

  .app-sidebar-link:hover,
  .app-sidebar-link.active {
    background: rgba(25,188,149,.12);
    color: var(--primary);
    transform: none;
  }
}

/* =========================
   MOBILE DRAWER
========================= */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(2,52,58,.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 7000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 320px);
  height: 100%;
  background: rgba(255,255,255,.96);
  box-shadow: -10px 0 35px rgba(2,52,58,.12);
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 20px;
  transform: translateX(100%);
  transition: transform .18s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mobile-drawer-head strong {
  color: var(--primary);
  font-size: 18px;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--primary);
  background: rgba(25,188,149,.06);
  font-weight: 700;
  transition: background .15s ease;
}

.mobile-drawer-nav a.active,
.mobile-drawer-nav a:hover {
  background: rgba(25,188,149,.14);
}

.mobile-drawer-nav a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (min-width: 1100px) {
  .mobile-drawer {
    display: none !important;
  }
}

/* =========================
   MOBILE BOTTOM NAV
========================= */
.app-bottom-nav {
  position: fixed;
  right: 12px;
  left: 12px;
  bottom: calc(var(--safe-bottom) + 10px);
  z-index: 6000;
  height: var(--bottom-nav-h);
  border-radius: 30px;
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 18px 35px rgba(2,52,58,.14);
  border: 1px solid rgba(255,255,255,.55);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 10px;
}

.app-bottom-nav a {
  text-decoration: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 20px;
  height: 56px;
  transition: .2s ease;
}

.app-bottom-nav a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.app-bottom-nav a span {
  font-size: 10px;
  font-weight: 700;
}

.app-bottom-nav a.active {
  color: var(--primary);
  background: rgba(25,188,149,.12);
}

@media (min-width: 1100px) {
  .app-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 24px;
  }
}

/* =========================
   COMMON GLASS BLOCKS
========================= */
.hero-card,
.user-card,
.search-card,
.section-card,
.app-footer {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* =========================
   USER CARD
========================= */
.user-card {
  padding: 18px;
  margin-bottom: 18px;
  position: relative;
}

.user-head {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.user-avatar-modern {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 3px solid rgba(255,255,255,.8);
  background: #fff;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-meta h2 {
  margin: 0;
  font-size: 20px;
  color: var(--primary);
}

.user-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 700px;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(25,188,149,.12);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  position: relative;
  cursor: pointer;
  width: fit-content;
}

.user-role-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: none;
  flex-direction: column;
  padding: 8px;
  z-index: 9999;
  border: 1px solid rgba(2,52,58,.08);
}

.user-role-dropdown span {
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
  transition: .2s ease;
  font-size: 13px;
}

.user-role-dropdown span:hover {
  background: rgba(25,188,149,.08);
  color: var(--primary);
}

.user-stats-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-box {
  padding: 16px;
  background: rgba(255,255,255,.75);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
  transition: .2s ease;
}

.stat-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.stat-box .label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-box .value {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
}

@media (min-width: 700px) {
  .user-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================
   HERO
========================= */
.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto auto -40px -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(25,188,149,.18), transparent 70%);
  pointer-events: none;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
  color: var(--primary);
}

.hero-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* =========================
   BUTTONS
========================= */
.btn-primary,
.btn-secondary,
.btn-soft {
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  font-weight: 800;
  transition: .2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #02343a, #19bc95);
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,.90);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-soft {
  background: rgba(25,188,149,.10);
  color: var(--primary);
}

.btn-secondary:hover,
.btn-soft:hover {
  transform: translateY(-1px);
}

/* =========================
   SEARCH
========================= */
.search-card {
  padding: 14px;
  margin-bottom: 18px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 900px) {
  .search-row {
    grid-template-columns: 1.2fr repeat(3, .8fr) auto;
  }
}

.field-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 18px;
  background: rgba(255,255,255,.90);
  border: 1px solid var(--line);
  padding: 0 14px;
}

.field-shell input,
.field-shell select {
  width: 100%;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.field-shell .material-symbols-rounded {
  color: #19bc95;
  flex-shrink: 0;
}

/* =========================
   SWITCHER
========================= */
.section-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255,255,255,.78);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.switch-btn {
  cursor: pointer;
  background: transparent;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--muted);
}

.switch-btn.active {
  background: linear-gradient(135deg, #02343a, #19bc95);
  color: #fff;
}

/* =========================
   GRID
========================= */
.property-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 700px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1500px) {
  .property-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* =========================
   PROPERTY CARD
========================= */
.property-card {
  position: relative;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}

.property-cover {
  position: relative;
  aspect-ratio: 1.6 / 1;
  background: linear-gradient(135deg, #e8f2ef, #f9fcfb);
  overflow: hidden;
}

.property-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.badge-status,
.badge-type {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.badge-status {
  background: rgba(255,255,255,.88);
  color: var(--primary);
}

.badge-status.sold {
  background: rgba(220,38,38,.92);
  color: #fff;
}

.badge-status.rented {
  background: rgba(91,147,64,.95);
  color: #fff;
}

.badge-status.available {
  background: rgba(25,188,149,.95);
  color: #fff;
}

.badge-type {
  background: rgba(2,52,58,.94);
  color: #fff;
}

.fav-circle {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 16px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fav-circle.active {
  background: #19bc95;
  color: #fff;
}

.property-body {
  padding: 16px;
}

.property-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.property-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  color: var(--primary);
}

.property-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.property-price {
  font-size: 22px;
  font-weight: 900;
  color: #02343a;
  white-space: nowrap;
}

.property-price small {
  font-size: 12px;
}

.property-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.spec-chip {
  min-height: 46px;
  border-radius: 18px;
  background: rgba(232,242,239,.92);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--text);
  font-size: 13px;
}

.spec-chip .material-symbols-rounded {
  font-size: 18px;
  color: #19bc95;
  flex-shrink: 0;
}

.property-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.property-actions .btn-primary,
.property-actions .btn-secondary {
  min-height: 46px;
  border-radius: 18px;
}

/* =========================
   PAGINATION
========================= */
.custom-pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.custom-pagination-bar button {
  padding: 12px 24px;
}

/* =========================
   NO RESULTS
========================= */
.no-results-center {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255,255,255,.82);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}

.no-results-center img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 12px;
}

/* =========================
   FOOTER
========================= */
.app-footer {
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin: auto auto 0;
  margin-top: auto;
  padding: 18px 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.90);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: .2s ease;
}

.footer-socials a:hover {
  transform: translateY(-2px);
}

.footer-socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-copy {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (min-width: 700px) {
  .app-footer {
    width: min(var(--page-max), calc(100% - (var(--page-gutter-tablet) * 2)));
  }
}

@media (min-width: 1100px) {
  .app-footer {
    width: min(var(--page-max), calc(100% - (var(--page-gutter-desktop) * 2)));
    padding-right: calc(20px + var(--desktop-sidebar-w) + 28px);
    margin-bottom: 0;
  }
}

/* =========================
   LOADER
========================= */
.app-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(180deg, #f9fcfb, #e8f2ef);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .35s ease, visibility .35s ease;
}

.app-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.loader-orb {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.loader-orb::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 22px;
  border: 3px solid rgba(25,188,149,.18);
  border-top-color: #02343a;
  animation: spin 1s linear infinite;
}

.loader-orb img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.loader-text {
  font-size: 14px;
  font-weight: 800;
  color: #19bc95;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 560px) {
  .app-main {
    width: calc(100% - 16px);
  }

  .hero-card,
  .user-card,
  .search-card,
  .app-footer {
    border-radius: 24px;
  }

  .property-card {
    border-radius: 24px;
  }

  .property-specs {
    grid-template-columns: 1fr 1fr;
  }

  .property-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .property-price {
    white-space: normal;
  }

  .property-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .hero-actions .btn-soft {
    width: 100%;
  }

  .user-head {
    align-items: flex-start;
  }

  .user-avatar-modern {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .user-meta h2 {
    font-size: 18px;
  }

  .stat-box .value {
    font-size: 18px;
  }

  .app-footer {
    width: calc(100% - 16px);
    padding: 16px;
  }
}

.sar-sign-img,
.project-sar-sign-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* =========================
   REDUCE MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}