@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* ═══════════════════════════════════════════════════
   CSS DESIGN SYSTEM — RealEstate Pro
   Two-module theming: ProBuild (Navy+Gold) / BuildiQ (Teal+Emerald)
═══════════════════════════════════════════════════ */

:root {
  /* ── ProBuild Theme ── */
  --pb-primary:       #1C3D6E;
  --pb-primary-alt:   #2952A3;
  --pb-accent:        #F59E0B;
  --pb-accent-dim:    rgba(245,158,11,0.14);
  --pb-gradient:      linear-gradient(145deg, #1A3560 0%, #2250A0 55%, #1C3D6E 100%);
  --pb-gradient-soft: linear-gradient(145deg, #1C3D6E 0%, #1A3560 100%);

  /* ── BuildiQ Theme ── */
  --bq-primary:       #074D5E;
  --bq-primary-alt:   #0A657A;
  --bq-accent:        #10C98A;
  --bq-accent-dim:    rgba(16,201,138,0.14);
  --bq-gradient:      linear-gradient(145deg, #064455 0%, #0A697E 55%, #074D5E 100%);
  --bq-gradient-soft: linear-gradient(145deg, #074D5E 0%, #064455 100%);

  /* ── Active Module Vars (switched by JS) ── */
  --mod-primary:    #1C3D6E;
  --mod-primary-alt:#2952A3;
  --mod-accent:     #F59E0B;
  --mod-accent-dim: rgba(245,158,11,0.14);
  --mod-gradient:   linear-gradient(145deg, #1A3560 0%, #2250A0 55%, #1C3D6E 100%);

  /* ── Surfaces ── */
  --surface:   #FFFFFF;
  --surface-2: #F3F7FD;
  --surface-3: #E8EFFA;
  --surface-4: #DDE7F5;

  /* ── Text ── */
  --text-primary:   #0C1A35;
  --text-secondary: #3A5078;
  --text-muted:     #7890B8;
  --text-inv:       #FFFFFF;

  /* ── Borders ── */
  --border:        #E0EAF8;
  --border-strong: #C4D5EE;

  /* ── Semantic Colors ── */
  --success:       #10B981;
  --success-light: rgba(16,185,129,0.12);
  --warning:       #F59E0B;
  --warning-light: rgba(245,158,11,0.12);
  --danger:        #EF4444;
  --danger-light:  rgba(239,68,68,0.12);
  --info:          #6366F1;
  --info-light:    rgba(99,102,241,0.12);
  --purple:        #8B5CF6;
  --purple-light:  rgba(139,92,246,0.12);

  /* ── Typography ── */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* ── Layout ── */
  --header-h:  80px;
  --nav-h:     68px;

  /* ── Radii ── */
  --r:    8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl:28px;
  --r-full: 9999px;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 3px rgba(12,26,53,0.05);
  --shadow-sm: 0 2px 8px rgba(12,26,53,0.08), 0 1px 2px rgba(12,26,53,0.04);
  --shadow:    0 4px 16px rgba(12,26,53,0.1),  0 1px 4px rgba(12,26,53,0.06);
  --shadow-lg: 0 8px 32px rgba(12,26,53,0.14), 0 2px 8px rgba(12,26,53,0.08);
  --shadow-accent: 0 4px 20px rgba(245,158,11,0.35);
  --shadow-card: 0 2px 12px rgba(12,26,53,0.07), 0 1px 3px rgba(12,26,53,0.04);

  /* ── Transitions ── */
  --t:        0.18s ease;
  --t-slow:   0.35s ease;
  --t-spring: 0.3s cubic-bezier(.34,1.56,.64,1);
  --t-module: 0.4s cubic-bezier(.4,0,.2,1);
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  --surface:   #0F1E36;
  --surface-2: #07101F;
  --surface-3: #172133;
  --surface-4: #1F2D45;

  --text-primary:   #E8EFFF;
  --text-secondary: #8AABD0;
  --text-muted:     #526D96;

  --border:        #1D3050;
  --border-strong: #283F66;

  --success-light: rgba(16,185,129,0.16);
  --warning-light: rgba(245,158,11,0.16);
  --danger-light:  rgba(239,68,68,0.16);
  --info-light:    rgba(99,102,241,0.16);
  --purple-light:  rgba(139,92,246,0.16);
  --mod-accent-dim:rgba(245,158,11,0.16);
  --pb-accent-dim: rgba(245,158,11,0.16);
  --bq-accent-dim: rgba(16,201,138,0.16);
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--surface-2);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition: background var(--t-slow), color var(--t-slow);
}

button { font-family: var(--font); cursor: pointer; }
a { text-decoration: none; color: inherit; }
input, select, textarea { font-family: var(--font); }

/* ── Desktop Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, #060F26 0%, #0E1F45 40%, #091527 70%, #0C1A35 100%);
  z-index: -1;
}
[data-theme="dark"] body::before {
  background: linear-gradient(145deg, #020612 0%, #050E20 40%, #030A14 70%, #040C1A 100%);
}

/* ═══════════════════════════════════════════════════
   APP FRAME
═══════════════════════════════════════════════════ */
.app-frame {
  width: 100%;
  max-width: 430px;
  min-height: 880px;
  height: 880px;
  margin: 32px auto;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border-radius: 44px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.06),
    0 0 0 8px rgba(255,255,255,0.025),
    0 40px 100px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  transition: all var(--t-slow);
}
.app-frame::-webkit-scrollbar { display: none; }

[data-theme="dark"] .app-frame {
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.04),
    0 0 0 8px rgba(255,255,255,0.015),
    0 40px 100px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ── Mobile Status Bar ── */
.status-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  flex-shrink: 0;
  position: relative;
  z-index: 200;
  background: var(--mod-primary);
  color: rgba(255,255,255,0.92);
  transition: background var(--t-module);
}
.status-bar .time { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.status-bar .icons { display: flex; gap: 6px; align-items: center; }
.notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 30px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 201;
}

/* ═══════════════════════════════════════════════════
   APP HEADER — Two-row layout
═══════════════════════════════════════════════════ */
.app-header {
  flex-shrink: 0;
  width: 100%;
  background: var(--mod-primary);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: background var(--t-module);
  position: relative;
}

/* ── Row 1: Logo + Action Icons ── */
.header-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 16px;
  height: 52px;
  gap: 8px;
}

/* ── Row 2: Module Switcher ── */
.header-row-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.logo {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
}
.logo-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.logo span { color: var(--mod-accent); }

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Module Switcher ── */
.module-switcher {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 2px;
}
.module-tab {
  padding: 5px 16px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  background: transparent;
  border: none;
  transition: all var(--t);
  white-space: nowrap;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.module-tab.active {
  background: var(--mod-accent);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}


/* ── Header Icon Buttons ── */
.icon-btn {
  width: 34px; height: 34px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  position: relative;
  transition: all var(--t);
  flex-shrink: 0;
}
.icon-btn:hover { background: rgba(255,255,255,0.2); }
.icon-btn:active { transform: scale(0.92); }

.badge {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--mod-primary);
}

.back-btn { display: none; }
.back-btn.visible { display: flex; }
.hidden { display: none !important; }

/* ── Role Panel (dropdown) ── */
.role-panel {
  position: absolute;
  top: calc(44px + 80px + 4px);
  right: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  min-width: 180px;
  animation: fadeSlideIn 0.2s ease;
}
.role-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.role-option:hover { background: var(--surface-3); color: var(--text-primary); }
.role-option.active { background: var(--mod-accent-dim); color: var(--mod-primary); font-weight: 700; }
.role-option .role-emoji { font-size: 16px; width: 22px; text-align: center; }

/* ═══════════════════════════════════════════════════
   SCREEN SYSTEM (SPA)
═══════════════════════════════════════════════════ */
.screen { display: none; flex-direction: column; flex: 1; overflow: hidden; }
.screen.active { display: flex; }
.screen.fade-in { animation: screenFadeIn 0.25s ease; }

/* ── Page Content (scrollable) ── */
.page-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  background: var(--surface-2);
  transition: background var(--t-slow);
  padding-bottom: 16px;
}
.page-content::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════════════
   BOTTOM NAVIGATION
═══════════════════════════════════════════════════ */
.bottom-nav {
  flex-shrink: 0;
  width: 100%;
  height: var(--nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: none;
  align-items: stretch;
  z-index: 100;
  transition: background var(--t-slow), border-color var(--t-slow);
}
.bottom-nav.active-nav { display: flex; }

.nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  background: transparent; border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--t);
  padding: 8px 0;
}
.nav-item.active { color: var(--mod-primary); }
.nav-icon {
  width: 36px; height: 28px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: background var(--t), transform var(--t-spring);
}
.nav-item.active .nav-icon {
  background: var(--mod-accent-dim);
  transform: scale(1.08);
}
.nav-label { font-size: 9.5px; font-weight: 600; letter-spacing: 0.15px; }

/* ═══════════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════════ */
.section { padding: 16px; }
.section + .section { padding-top: 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.section-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.text-link { font-size: 12px; font-weight: 600; color: var(--mod-accent); background: none; border: none; }
.divider { height: 1px; background: var(--border); margin: 4px 0; }
.spacer { height: 8px; }

.flex-row { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; gap: 4px; }

/* ═══════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  transition: all var(--t-slow);
}
.card:last-child { margin-bottom: 0; }
.card-pressable:active { transform: scale(0.98); }

/* ═══════════════════════════════════════════════════
   HERO BANNER (ProBuild)
═══════════════════════════════════════════════════ */
.pb-hero {
  background: var(--mod-gradient);
  padding: 20px 16px 24px;
  position: relative;
  overflow: hidden;
}
.pb-hero::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.pb-hero::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-greeting { margin-bottom: 16px; }
.hero-greeting h2 { font-size: 19px; font-weight: 800; color: #fff; line-height: 1.2; }
.hero-greeting p  { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 3px; }
.hero-stats-row {
  display: flex; gap: 0;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-stat {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
}
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,0.1); }
.hero-stat-value { font-size: 22px; font-weight: 800; color: var(--mod-accent); line-height: 1; }
.hero-stat-label { font-size: 10px; color: rgba(255,255,255,0.6); margin-top: 3px; font-weight: 500; }

/* ── BuildiQ Hero ── */
.bq-hero {
  background: var(--bq-gradient);
  padding: 20px 16px 24px;
  position: relative;
  overflow: hidden;
}
.bq-hero::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
}

/* ═══════════════════════════════════════════════════
   QUICK ACTIONS
═══════════════════════════════════════════════════ */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.qa-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 6px;
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  cursor: pointer;
  transition: all var(--t);
  box-shadow: var(--shadow-xs);
}
.qa-btn:active { transform: scale(0.94); background: var(--surface-3); }
.qa-icon { font-size: 20px; }
.qa-label { font-size: 10px; font-weight: 600; color: var(--text-secondary); text-align: center; line-height: 1.2; }

/* ═══════════════════════════════════════════════════
   FINANCIAL SNAPSHOT
═══════════════════════════════════════════════════ */
.fin-snap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.fin-row { display: flex; gap: 0; margin-bottom: 12px; }
.fin-item { flex: 1; padding: 0 8px; }
.fin-item:first-child { padding-left: 0; }
.fin-item + .fin-item { border-left: 1px solid var(--border); }
.fin-label { font-size: 10px; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.fin-value { font-size: 14px; font-weight: 800; }
.fin-value.c-success { color: var(--success); }
.fin-value.c-danger  { color: var(--danger); }
.fin-value.c-accent  { color: var(--mod-accent); }
.fin-track {
  height: 6px;
  background: var(--surface-3);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-bottom: 6px;
}
.fin-track-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--danger) 0%, var(--warning) 100%);
  border-radius: var(--r-full);
  transition: width 1s ease;
}
.fin-track-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); font-weight: 500; }

/* ═══════════════════════════════════════════════════
   PROJECT CARDS
═══════════════════════════════════════════════════ */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all var(--t);
}
.project-card:active { transform: scale(0.98); }
.project-card-header {
  padding: 14px 14px 10px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.project-card-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.project-card-loc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.project-card-body { padding: 0 14px 12px; }
.project-card-stats {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 10px;
}
.pc-stat { display: flex; flex-direction: column; gap: 1px; }
.pc-stat-val { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.pc-stat-key { font-size: 10px; color: var(--text-muted); }

/* Progress bar */
.prog-wrap {
  height: 6px;
  background: var(--surface-3);
  border-radius: var(--r-full);
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  border-radius: var(--r-full);
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.prog-fill.pb { background: linear-gradient(90deg, var(--pb-primary) 0%, var(--pb-accent) 100%); }
.prog-fill.bq { background: linear-gradient(90deg, var(--bq-primary) 0%, var(--bq-accent) 100%); }
.prog-fill.success { background: linear-gradient(90deg, #059669 0%, var(--success) 100%); }
.prog-fill.warning { background: linear-gradient(90deg, #D97706 0%, var(--warning) 100%); }
.prog-fill.info    { background: linear-gradient(90deg, var(--info) 0%, #818CF8 100%); }

.prog-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

/* ═══════════════════════════════════════════════════
   STATUS / PHASE BADGES
═══════════════════════════════════════════════════ */
.badge-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.badge-planning   { background: var(--purple-light); color: var(--purple); }
.badge-foundation { background: var(--info-light);   color: var(--info); }
.badge-structure  { background: var(--warning-light); color: #B45309; }
.badge-finishing  { background: var(--success-light); color: #047857; }
.badge-delivered  { background: rgba(16,185,129,0.2); color: var(--success); }
.badge-upcoming   { background: var(--purple-light);  color: var(--purple); }
.badge-paid       { background: var(--success-light); color: #047857; }
.badge-pending    { background: var(--warning-light); color: #B45309; }
.badge-overdue    { background: var(--danger-light);  color: #B91C1C; }
.badge-partial    { background: var(--info-light);    color: #3730A3; }
.badge-owner      { background: var(--success-light); color: #047857; }
.badge-renter     { background: var(--info-light);    color: #3730A3; }
.badge-land-owner { background: rgba(245,158,11,0.15);color: #B45309; }
.badge-vacant     { background: var(--surface-3);     color: var(--text-muted); }

/* ── Dot status indicator ── */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%; flex-shrink: 0;
  animation: pulse-dot 2s ease infinite;
}
.dot-success { background: var(--success); }
.dot-warning { background: var(--warning); }
.dot-danger  { background: var(--danger); }
.dot-info    { background: var(--info); }
.dot-muted   { background: var(--text-muted); animation: none; }

/* ═══════════════════════════════════════════════════
   ALERT ITEMS
═══════════════════════════════════════════════════ */
.alert-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  margin-bottom: 8px;
  border-left: 3px solid transparent;
}
.alert-item.warning { background: var(--warning-light); border-color: var(--warning); }
.alert-item.danger  { background: var(--danger-light);  border-color: var(--danger); }
.alert-item.info    { background: var(--info-light);    border-color: var(--info); }
.alert-item.success { background: var(--success-light); border-color: var(--success); }
.alert-emoji { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-title { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.alert-desc  { font-size: 11px; color: var(--text-secondary); margin-top: 2px; line-height: 1.4; }

/* ═══════════════════════════════════════════════════
   ACTIVITY FEED
═══════════════════════════════════════════════════ */
.activity-feed { display: flex; flex-direction: column; }
.activity-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.dot-payment  { background: var(--success); }
.dot-progress { background: var(--info); }
.dot-material { background: var(--warning); }
.dot-investor { background: var(--purple); }
.dot-meeting  { background: #EC4899; }
.dot-alert    { background: var(--danger); }
.activity-text { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.activity-text strong { color: var(--text-primary); font-weight: 600; }
.activity-time { font-size: 10px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

/* ═══════════════════════════════════════════════════
   TABS (horizontal scrollable)
═══════════════════════════════════════════════════ */
.tab-bar-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar-wrap::-webkit-scrollbar { display: none; }
.tab-bar {
  display: flex;
  padding: 0 12px;
  gap: 0;
  min-width: max-content;
}
.tab-btn {
  padding: 12px 14px;
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
  cursor: pointer;
}
.tab-btn.active { color: var(--mod-primary); border-bottom-color: var(--mod-accent); }
.tab-content { display: none; flex: 1; }
.tab-content.active { display: block; }

/* ── Sub-tab content scrollable ── */
.tab-scroll {
  overflow-y: auto;
  scrollbar-width: none;
  height: 100%;
  padding-bottom: 16px;
}
.tab-scroll::-webkit-scrollbar { display: none; }

/* ═══════════════════════════════════════════════════
   PROJECT DETAIL HEADER
═══════════════════════════════════════════════════ */
.detail-header {
  background: var(--mod-gradient);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}
.detail-header::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.detail-proj-name { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.detail-proj-loc  { font-size: 11px; color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.detail-stats-row { display: flex; gap: 0; }
.detail-stat {
  flex: 1; text-align: center;
  padding: 10px 4px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  margin: 0 3px;
}
.detail-stat:first-child { margin-left: 0; }
.detail-stat:last-child  { margin-right: 0; }
.detail-stat-val { font-size: 15px; font-weight: 800; color: var(--mod-accent); }
.detail-stat-key { font-size: 9px; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ═══════════════════════════════════════════════════
   INVESTOR LIST
═══════════════════════════════════════════════════ */
.investor-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all var(--t);
}
.investor-item:active { transform: scale(0.98); }
.investor-avatar {
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.investor-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.investor-sub  { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.investor-right { margin-left: auto; text-align: right; }
.investor-amount { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.investor-due { font-size: 10px; margin-top: 2px; }

/* ── Avatar colors ── */
.av-1 { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.av-2 { background: linear-gradient(135deg, #10B981, #059669); }
.av-3 { background: linear-gradient(135deg, #F59E0B, #D97706); }
.av-4 { background: linear-gradient(135deg, #EF4444, #DC2626); }
.av-5 { background: linear-gradient(135deg, #3B82F6, #2563EB); }
.av-6 { background: linear-gradient(135deg, #EC4899, #DB2777); }
.av-7 { background: linear-gradient(135deg, #14B8A6, #0D9488); }
.av-8 { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }

/* Search bar */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 8px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
}
.search-bar span { font-size: 15px; }
.search-bar input {
  flex: 1; border: none; background: transparent;
  font-size: 13px; color: var(--text-primary);
  outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════
   FINANCIAL SCREENS
═══════════════════════════════════════════════════ */
.balance-hero {
  background: var(--mod-gradient);
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.balance-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.07) 0%, transparent 60%);
}
.balance-label { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 500; margin-bottom: 4px; }
.balance-amount { font-size: 32px; font-weight: 900; color: #fff; letter-spacing: -0.5px; }
.balance-project { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.balance-chips { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.balance-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  padding: 5px 12px;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.transaction-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.transaction-item:last-child { border-bottom: none; }
.tx-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.tx-name  { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.tx-date  { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.tx-amount { margin-left: auto; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tx-amount.credit { color: var(--success); }
.tx-amount.debit  { color: var(--danger); }

/* Category chips */
.cat-chips {
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none; padding-bottom: 2px;
  margin-bottom: 12px;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap; cursor: pointer;
  transition: all var(--t);
}
.cat-chip.active { background: var(--mod-primary); color: #fff; border-color: var(--mod-primary); }

/* ═══════════════════════════════════════════════════
   SUPPLIER / MATERIAL ITEMS
═══════════════════════════════════════════════════ */
.supplier-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-xs);
}
.supplier-icon {
  width: 38px; height: 38px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.supplier-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.supplier-type { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.supplier-right { margin-left: auto; text-align: right; }
.supplier-total { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.supplier-due   { font-size: 10px; margin-top: 2px; }

/* ═══════════════════════════════════════════════════
   FLOOR PLAN GRID
═══════════════════════════════════════════════════ */
.floor-plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.floor-row {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
}
.floor-row:last-child { border-bottom: none; }
.floor-label {
  width: 48px; flex-shrink: 0;
  padding: 10px 8px;
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  text-align: center;
  background: var(--surface-2);
}
.floor-units { display: flex; flex: 1; }
.flat-unit {
  flex: 1;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
  border-right: 1px solid var(--border);
}
.flat-unit:last-child { border-right: none; }
.flat-unit:active { opacity: 0.7; }
.flat-unit-no   { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.flat-unit-sqft { font-size: 9px; color: var(--text-muted); margin-top: 1px; }
.flat-unit.sold      { background: rgba(16,185,129,0.08); }
.flat-unit.reserved  { background: rgba(245,158,11,0.08); }
.flat-unit.available { background: transparent; }
.flat-unit.land-owner{ background: rgba(245,158,11,0.15); }
.flat-unit .flat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  margin: 0 auto 4px;
}
.flat-dot.sold       { background: var(--success); }
.flat-dot.reserved   { background: var(--warning); }
.flat-dot.available  { background: var(--border-strong); }
.flat-dot.land-owner { background: #D97706; }

.floor-plan-legend {
  display: flex; gap: 12px; padding: 10px 14px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--text-muted); font-weight: 500; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ═══════════════════════════════════════════════════
   MEETING CARDS
═══════════════════════════════════════════════════ */
.meeting-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  display: flex; gap: 12px; align-items: flex-start;
}
.meeting-date-box {
  background: var(--mod-accent-dim);
  border-radius: var(--r-md);
  padding: 8px 10px;
  text-align: center;
  flex-shrink: 0;
  min-width: 48px;
}
.meeting-day   { font-size: 20px; font-weight: 800; color: var(--mod-primary); line-height: 1; }
.meeting-month { font-size: 10px; font-weight: 700; color: var(--mod-primary); text-transform: uppercase; }
.meeting-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.meeting-time  { font-size: 11px; color: var(--text-muted); }
.meeting-proj  { font-size: 11px; color: var(--info); margin-top: 3px; font-weight: 500; }
.meeting-attendees { font-size: 10px; color: var(--text-muted); margin-top: 4px; }

/* ═══════════════════════════════════════════════════
   MARKETING / DISCOVER SCREENS
═══════════════════════════════════════════════════ */
.past-project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.ppc-banner {
  height: 120px;
  position: relative;
  display: flex; align-items: flex-end;
  padding: 14px;
}
.ppc-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%);
}
.ppc-banner-name {
  font-size: 17px; font-weight: 800;
  color: #fff; position: relative; z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.ppc-body { padding: 14px; }
.roi-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--success-light);
  color: #047857;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  margin-bottom: 10px;
}
.ppc-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.ppc-stat {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 8px;
  text-align: center;
}
.ppc-stat-val { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.ppc-stat-key { font-size: 9px; color: var(--text-muted); margin-top: 1px; }

/* Upcoming project hero card */
.upcoming-card {
  background: var(--mod-gradient);
  border-radius: var(--r-xl);
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.upcoming-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.upcoming-badge {
  background: var(--mod-accent);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  display: inline-block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.upcoming-name { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.upcoming-loc  { font-size: 12px; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.upcoming-stats { display: flex; gap: 0; }
.us-item { flex: 1; padding: 10px 8px; background: rgba(255,255,255,0.1); border-radius: var(--r-md); margin: 0 3px; text-align: center; }
.us-item:first-child { margin-left: 0; }
.us-item:last-child  { margin-right: 0; }
.us-val { font-size: 14px; font-weight: 800; color: var(--mod-accent); }
.us-key { font-size: 9px; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* EOI Form */
.eoi-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--shadow-card); }
.form-group { margin-bottom: 12px; }
.form-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; display: block; text-transform: uppercase; letter-spacing: 0.4px; }
.form-input, .form-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--t);
}
.form-input:focus, .form-select:focus { border-color: var(--mod-accent); }
.form-select { appearance: none; -webkit-appearance: none; cursor: pointer; }

/* ═══════════════════════════════════════════════════
   BUILDIQ COMPONENTS
═══════════════════════════════════════════════════ */
.flat-registry-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all var(--t);
}
.flat-num-box {
  width: 40px; height: 40px;
  border-radius: var(--r);
  background: var(--bq-accent-dim, var(--mod-accent-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  color: var(--bq-primary);
  flex-shrink: 0;
}
.flat-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.flat-sub  { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* Charge collection list */
.charge-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--surface);
  border-radius: var(--r-md);
  margin-bottom: 6px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.charge-flat { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.charge-name { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.charge-amt  { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-left: auto; }

/* Maintenance items */
.maint-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-xs);
}
.maint-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.maint-title  { font-size: 13px; font-weight: 700; color: var(--text-primary); flex: 1; }
.urgency-high   { background: var(--danger-light);  color: var(--danger);  padding: 2px 7px; border-radius: var(--r-full); font-size: 10px; font-weight: 700; }
.urgency-medium { background: var(--warning-light); color: #B45309;        padding: 2px 7px; border-radius: var(--r-full); font-size: 10px; font-weight: 700; }
.urgency-low    { background: var(--info-light);    color: var(--info);    padding: 2px 7px; border-radius: var(--r-full); font-size: 10px; font-weight: 700; }
.maint-desc  { font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.4; }
.maint-footer{ display: flex; align-items: center; gap: 8px; }
.maint-flat  { font-size: 10px; color: var(--text-muted); font-weight: 500; }
.maint-status{ font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-full); }
.ms-open       { background: var(--danger-light);  color: var(--danger); }
.ms-assigned   { background: var(--warning-light); color: #B45309; }
.ms-inprogress { background: var(--info-light);    color: var(--info); }
.ms-resolved   { background: var(--success-light); color: #047857; }

/* Committee member */
.committee-member {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.cm-role { font-size: 10px; font-weight: 700; color: var(--bq-accent); text-transform: uppercase; letter-spacing: 0.4px; }
.cm-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.cm-since{ font-size: 10px; color: var(--text-muted); }

/* Notice board items */
.notice-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 13px 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-xs);
  display: flex; gap: 10px; align-items: flex-start;
}
.notice-icon { font-size: 18px; flex-shrink: 0; }
.notice-title{ font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.notice-body { font-size: 11px; color: var(--text-secondary); line-height: 1.4; }
.notice-date { font-size: 10px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px;
  border-radius: var(--r-md);
  font-size: 13px; font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--t);
  border: none;
  letter-spacing: 0.1px;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--mod-primary); color: #fff; box-shadow: 0 2px 10px rgba(28,61,110,0.3); }
.btn-primary:hover { opacity: 0.92; }
.btn-accent  { background: var(--mod-accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-accent:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--text-primary); }
.btn-success { background: var(--success); color: #fff; }
.btn-ghost   { background: transparent; border: none; color: var(--text-secondary); }
.btn-block   { width: 100%; }
.btn-sm      { padding: 7px 14px; font-size: 12px; }

/* ── FAB ── */
.fab {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 52px; height: 52px;
  background: var(--mod-accent);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(245,158,11,0.45);
  transition: all var(--t-spring);
  z-index: 50;
}
.fab:active { transform: scale(0.9); }

/* ═══════════════════════════════════════════════════
   SUMMARY STAT TILES (2x2 grid)
═══════════════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 12px;
  box-shadow: var(--shadow-xs);
}
.stat-tile-icon { font-size: 22px; margin-bottom: 8px; }
.stat-tile-val  { font-size: 20px; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 3px; }
.stat-tile-key  { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.stat-tile-delta{ font-size: 10px; font-weight: 600; margin-top: 4px; }
.delta-up   { color: var(--success); }
.delta-down { color: var(--danger); }

/* ═══════════════════════════════════════════════════
   PROGRESS TIMELINE (Milestones)
═══════════════════════════════════════════════════ */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.milestone {
  position: relative;
  margin-bottom: 16px;
}
.milestone::before {
  content: '';
  position: absolute;
  left: -16px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  z-index: 1;
}
.milestone.done::before { background: var(--success); border-color: var(--success); }
.milestone.active-ms::before { background: var(--warning); border-color: var(--warning); box-shadow: 0 0 0 3px var(--warning-light); }
.milestone-title { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.milestone-desc  { font-size: 11px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.milestone-date  { font-size: 10px; color: var(--text-muted); margin-top: 3px; font-weight: 500; }

/* ═══════════════════════════════════════════════════
   PROGRESS LOG (Construction Updates Feed)
═══════════════════════════════════════════════════ */
.update-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
}
.update-post-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.update-post-type {
  width: 30px; height: 30px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.update-post-title { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.update-post-time  { font-size: 10px; color: var(--text-muted); }
.update-post-body  { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.update-photo-placeholder {
  background: var(--surface-3);
  border-radius: var(--r-md);
  height: 80px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 8px;
  font-size: 24px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   FILTER TABS (Pill style)
═══════════════════════════════════════════════════ */
.filter-tabs {
  display: flex; gap: 6px; overflow-x: auto;
  scrollbar-width: none; padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-pill {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap; cursor: pointer;
  transition: all var(--t);
}
.filter-pill.active { background: var(--mod-primary); color: #fff; border-color: var(--mod-primary); }

/* ═══════════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════════ */
.empty-state {
  padding: 40px 24px;
  text-align: center;
}
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.empty-desc  { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════════════
   PAYMENT METHOD CHIPS
═══════════════════════════════════════════════════ */
.pay-methods { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pay-method {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all var(--t);
}
.pay-method.active { background: var(--mod-accent-dim); border-color: var(--mod-accent); color: var(--mod-primary); }

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */
@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50%       { box-shadow: 0 0 0 4px rgba(16,185,129,0); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
@keyframes progressFill {
  from { width: 0; }
}

/* ═══════════════════════════════════════════════════
   MISC UTILITIES
═══════════════════════════════════════════════════ */
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info    { color: var(--info); }
.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--mod-accent); }
.text-primary { color: var(--text-primary); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fs-10 { font-size: 10px; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }

/* ═══════════════════════════════════════════════════
   FLAT FOR SALE — Listing Cards & Floor Plan Status
═══════════════════════════════════════════════════ */

/* ── Sale Listing Card ── */
.sale-card {
  background: var(--surface);
  border: 1.5px solid rgba(245,158,11,0.28);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(245,158,11,0.1), var(--shadow-card);
  transition: transform var(--t);
}
.sale-card:active { transform: scale(0.985); }

.sale-card-header {
  background: var(--mod-gradient);
  padding: 11px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.sale-for-sale-badge {
  background: var(--warning);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-full);
  display: inline-block;
  margin-bottom: 5px;
  letter-spacing: 0.4px;
}
.sale-project-name { font-size: 13px; font-weight: 700; color: #fff; }
.sale-flat-code {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-md);
  padding: 6px 10px;
  text-align: center;
  flex-shrink: 0;
}
.sale-flat-num { font-size: 18px; font-weight: 900; color: var(--warning); line-height: 1; }
.sale-flat-label { font-size: 9px; color: rgba(255,255,255,0.6); margin-top: 2px; }

.sale-card-body { padding: 14px; }

.sale-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.sale-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--warning);
  letter-spacing: -0.5px;
  line-height: 1;
}
.sale-price-psf {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.sale-highlight {
  font-size: 11px;
  color: var(--info);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sale-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.sale-meta-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.sale-note {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  background: var(--surface-2);
  border-left: 3px solid var(--warning);
  padding: 7px 10px;
  border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 12px;
}

.sale-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.sale-btn-call {
  flex: 1;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t);
  font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.sale-btn-admin {
  flex: 1;
  background: transparent;
  color: var(--mod-primary);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t);
  font-family: var(--font);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.sale-btn-call:active, .sale-btn-admin:active { transform: scale(0.96); }

.sale-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── For Sale status in Floor Plan grid ── */
.flat-unit.for-sale {
  background: rgba(245,158,11,0.12);
  position: relative;
}
.flat-dot.for-sale {
  background: var(--warning);
  box-shadow: 0 0 0 2px rgba(245,158,11,0.25);
  animation: pulse-sale 1.5s ease-in-out infinite;
}
.flat-unit-tag {
  font-size: 7px;
  font-weight: 800;
  color: var(--warning);
  letter-spacing: 0.2px;
  line-height: 1;
}

@keyframes pulse-sale {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(245,158,11,0); }
}

/* ── Sale section header pill ── */
.sale-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--warning-light);
  color: #B45309;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
}

/* ── List My Flat form card ── */
.list-flat-card {
  background: linear-gradient(135deg, var(--warning-light), rgba(245,158,11,0.04));
  border: 1.5px dashed rgba(245,158,11,0.4);
  border-radius: var(--r-xl);
  padding: 16px;
}
.list-flat-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.list-flat-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

