@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* =============================================================
   1. BRAND TOKENS & VARIABLES
   ============================================================= */
:root {
  --primary: #102340;
  --primary-light: #264875;
  --accent: #678EBC;
  --accent-soft: #E7EEF6;
  --tint: #CCD8E4;
  --steel: #888F96;

  --success: #1E8E5A;
  --success-soft: #E5F5EC;
  --warning: #E8A33D;
  --warning-soft: #FCF1E0;
  --error: #D64545;
  --error-soft: #FBE9E9;

  --ink-900: #16181D;
  --ink-500: #6B7280;
  --ink-400: #9CA3AF;
  --ink-300: #9AA6B5;
  --border: #E4E7EC;
  --surface: #FFFFFF;
  --bg: #F4F6F9;

  --radius: 12px;
  --sidebar-w: 240px;

  --l-navy: #102340;
  --l-navy-dark: #0A1830;
  --l-accent: #678EBC;
  --l-accent-dark: #4E749F;
  --l-gold: #C9A24A;
  --l-bg: #F8FAFC;
  --l-white: #FFFFFF;
  --l-text: #172033;
  --l-muted: #64748B;
  --l-navtext: #475569;
  --l-border: #E2E8F0;
  --l-success: #16A34A;
  --l-warning: #F59E0B;
}

/* =============================================================
   2. BASE & RESET
   ============================================================= */
* { 
  box-sizing: border-box; 
}

html { 
  -webkit-text-size-adjust: 100%; 
  scroll-behavior: smooth; 
}
  
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}

a { 
  text-decoration: none; 
  color: inherit; 
}

img { 
  max-width: 100%; 
  display: block; 
}

/* =============================================================
   3. GLOBAL COMPONENTS (Buttons, Forms, Badges, Tables)
   ============================================================= */
.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px;
  padding: 12px 18px; 
  border-radius: 10px; 
  border: none;
  font-weight: 600; 
  font-size: 14px; 
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .05s;
}

.btn:active { 
  transform: translateY(1px); 
}

.btn-primary { 
  background: var(--primary); 
  color: #fff; 
  width: 100%; 
}

.btn-primary:hover { 
  background: var(--primary-light); 
}
  
.btn-link { 
  background: none; 
  color: var(--primary-light); 
  padding: 0; 
  font-weight: 700; 
}

.field { 
  margin-bottom: 16px; 
}
  
.field label { 
  display: block; 
  font-size: 13px; 
  font-weight: 600; 
  margin-bottom: 6px; 
  color: var(--ink-900); 
}
  
.field input, 
.field select, 
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus, 
.field select:focus, 
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(103,142,188,.18);
}

.field input[type="file"] { 
  padding: 8px; 
  font-size: 13px; 
}

.error-msg { 
  background: var(--error-soft); 
  color: var(--error); 
  padding: 10px 12px; 
  border-radius: 8px; 
  font-size: 13px; 
  margin-bottom: 16px; 
}
  
.success-msg { 
  background: var(--success-soft); 
  color: var(--success); 
  padding: 10px 12px; 
  border-radius: 8px; 
  font-size: 13px; 
  margin-bottom: 16px; 
}

.badge { 
  display: inline-flex; 
  align-items: center; 
  gap: 4px; 
  padding: 3px 10px; 
  border-radius: 999px; 
  font-size: 12px; 
  font-weight: 700; 
  white-space: nowrap; 
}
  
.badge-pending { 
  background: var(--warning-soft); 
  color: var(--warning); 
}
  
.badge-approved, 
.badge-active, 
.badge-verified { 
  background: var(--success-soft); 
  color: var(--success); 
}
  
.badge-rejected, 
.badge-suspended { 
  background: var(--error-soft); 
  color: var(--error); 
}

.table-scroll { 
  width: 100%; 
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch; 
}
  
table { 
  width: 100%; 
  border-collapse: collapse; 
  font-size: 14px; 
  min-width: 560px; 
}
  
th { 
  text-align: left; 
  color: var(--ink-500); 
  font-size: 12px; 
  text-transform: uppercase; 
  padding: 10px 12px; 
  border-bottom: 1px solid var(--border); 
  white-space: nowrap; 
}
  
td { 
  padding: 12px; 
  border-bottom: 1px solid var(--border); 
  color: var(--ink-500); 
}

td strong { 
  color: var(--ink-900); 
  font-weight: 600; 
}

.card {
  background: var(--surface);
  border: 1px solid var(--border); 
  border-radius: var(--radius);
  padding: 20px; 
  margin-bottom: 20px;
}

.card-table {
  padding: 0;
  overflow: hidden;
  margin-bottom: 28px;
}

.kpi-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
  gap: 16px; 
  margin-bottom: 24px; 
}

.kpi-label { 
  font-size: 12px; 
  color: var(--ink-500); 
  font-weight: 600; 
  text-transform: uppercase; 
  letter-spacing: .03em; 
}

.kpi-value { 
  font-size: 26px; 
  font-weight: 800; 
  margin-top: 4px; 
}
  
.card-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
  gap: 16px; 
}

.card-grid-fixed { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(260px, 300px)); 
  gap: 16px; 
}

/* My Properties: 4 cards per row on wide screens, stepping down on smaller ones */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1280px) { .card-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px)  { .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .card-grid-4 { grid-template-columns: 1fr; } }

.two-col { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 20px; 
}

.page-title { 
  margin: 0 0 4px; 
  font-weight: 800; 
  color: var(--ink-900); 
}

.page-subtitle { 
  font-size: 13px; 
  color: var(--ink-500); 
  margin: 0 0 20px; 
}

.section-title { 
  font-weight: 700; 
  font-size: 13px; 
  margin-bottom: 12px; 
}

.kpi-subtext { 
  font-size: 12px; 
  color: var(--ink-500); 
}

.placeholder-note { 
  border: 1px dashed var(--border); 
  border-radius: 12px; 
  padding: 40px; 
  text-align: center; 
  color: var(--ink-500); 
  font-size: 14px; 
}

/* =============================================================
   4. DASHBOARD LAYOUT & SHELL
   ============================================================= */
.app-shell { 
  display: flex; 
  min-height: 100vh; 
}
  
.main { 
  flex: 1; 
  min-width: 0; 
}

.content { 
  padding: 28px; 
  max-width: 1280px; 
}

.sidebar {
  width: var(--sidebar-w); 
  background: var(--surface); 
  color: var(--ink-900);
  padding: 20px 14px; 
  flex-shrink: 0;
  position: sticky; 
  top: 0; 
  height: 100vh; 
  overflow-y: auto;
  transition: transform .25s ease;
  border-right: 3px solid var(--primary);
  z-index: 40;
}

.sidebar .brand { 
  padding: 6px 8px 22px; 
}
  
.sidebar .brand img { 
  height: 24px; 
  width: auto; 
  display: block; 
}

.nav-item {
  display: flex; 
  align-items: center; 
  gap: 10px;
  padding: 10px 12px 10px 15px; 
  border-radius: 10px; 
  font-size: 14px; 
  font-weight: 500;
  color: var(--ink-500); 
  margin-bottom: 2px;
  border-left: 3px solid transparent; 
  margin-left: -3px;
}

.nav-item:hover { 
  background: var(--bg); 
  color: var(--ink-900); 
}
  
.nav-item.active { 
  background: var(--primary); 
  color: #fff; 
  font-weight: 700; 
  border-left: 3px solid var(--accent); 
}

.nav-item i { 
  font-size: 16px; 
  width: 18px; 
  text-align: center; 
}

.topbar {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 14px 28px; 
  background: var(--surface); 
  border-bottom: 1px solid var(--border);
  position: sticky; 
  top: 0; 
  z-index: 30;
  gap: 12px;
}

.topbar .who { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  min-width: 0; 
}
  
.topbar .who strong { 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}
  
.topbar .role-pill {
  background: var(--accent-soft); 
  color: var(--primary); 
  font-size: 11.5px; 
  font-weight: 700;
  padding: 4px 10px; 
  border-radius: 999px; 
  text-transform: uppercase; 
  letter-spacing: .04em;
  white-space: nowrap;
}

.topbar .right { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  flex-shrink: 0; 
}

.topbar .email-full { 
  color: var(--ink-500); 
  font-size: 14px; 
}

.menu-toggle {
  display: none;
  background: none; 
  border: none; 
  font-size: 22px; 
  color: var(--primary);
  padding: 4px 6px; 
  cursor: pointer; 
  line-height: 1;
}

.sidebar-overlay { 
  display: none; 
}

/* =============================================================
   5. DASHBOARD MODULES
   ============================================================= */
.auth-shell { 
  min-height: 100vh; 
  display: flex; 
}

.auth-visual {
  flex: 1 1 54%; 
  min-width: 0; 
  position: relative;
  background: linear-gradient(155deg, rgba(16,35,64,.88) 0%, rgba(38,72,117,.82) 65%, rgba(28,53,89,.9) 100%), url('/assets/img/auth-bg.jpg') center / cover no-repeat;
  background-color: var(--primary);
  display: flex; 
  flex-direction: column; 
  justify-content: space-between;
  padding: 44px 48px; 
  color: #fff; 
  overflow: hidden;
}

.auth-visual .brand-mark img { 
  display: block; 
  height: 30px; 
  width: auto; 
}

.auth-visual .tagline { 
  max-width: 380px; 
}

.auth-visual .tagline h1 { 
  font-size: clamp(26px, 3vw, 34px); 
  line-height: 1.25; 
  margin: 0 0 12px; 
  font-weight: 700; 
  color: #fff; 
}

.auth-visual .tagline p { 
  font-size: 14.5px; 
  color: rgba(255,255,255,.85); 
  line-height: 1.6; 
  margin: 0; 
}

.auth-visual .badges { 
  display: flex; 
  gap: 10px; 
  flex-wrap: wrap; 
  margin-top: 22px; 
}

.auth-visual .badges span {
  font-size: 11.5px; 
  font-weight: 600; 
  letter-spacing: .02em;
  background: rgba(255,255,255,.12); 
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 12px; 
  border-radius: 999px;
}

.auth-form-side { 
  flex: 1 1 46%; 
  min-width: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 40px 24px; 
  background: var(--surface); 
}

.auth-card { 
  width: 100%; 
  max-width: 400px; 
}

.auth-card .card-brand { 
  display: flex; 
  align-items: center; 
  margin-bottom: 22px; 
}

.auth-card .card-brand img { 
  height: 28px; 
  width: auto; 
}

.auth-logo { 
  font-weight: 800; 
  font-size: 22px; 
  color: var(--primary); 
  margin-bottom: 4px; 
}

.auth-title { 
  font-size: 22px; 
  font-weight: 800; 
  margin: 0 0 6px; 
  color: var(--ink-900); 
}

.auth-sub { 
  color: var(--ink-500); 
  font-size: 14px; 
  margin-bottom: 26px; 
  line-height: 1.5; 
}

.prop-card { 
  padding: 0; 
  overflow: hidden; 
}

.prop-card-img-wrap { 
  position: relative; 
  height: 160px; 
  background: var(--bg); 
}

.prop-card-img-wrap img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.prop-card-noimg { 
  width: 100%; 
  height: 100%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--ink-300); 
  font-size: 28px; 
}

.prop-card-badge-type {
  position: absolute; 
  top: 10px; 
  left: 10px; 
  background: var(--primary); 
  color: #fff;
  font-size: 10px; 
  font-weight: 800; 
  padding: 5px 10px; 
  border-radius: 999px;
  letter-spacing: .3px; 
  text-transform: uppercase;
}

.prop-card-badge-status {
  position: absolute; 
  top: 10px; 
  right: 10px; 
  font-size: 10px; 
  font-weight: 800;
  padding: 5px 10px; 
  border-radius: 999px; 
  letter-spacing: .3px; 
  text-transform: uppercase;
}

.prop-card-body { 
  padding: 16px; 
}
  
.prop-card-body h3 { 
  margin: 0 0 3px; 
  font-size: 15px; 
  color: var(--ink-900); 
}

.prop-card-address { 
  font-size: 12px; 
  color: var(--ink-500); 
  display: flex; 
  align-items: flex-start; 
  gap: 4px; 
}

.prop-stats-row { 
  display: flex; 
  justify-content: space-between; 
  margin-top: 12px; 
  padding-top: 12px; 
  border-top: 1px solid var(--border); 
  font-size: 12px; 
}

.prop-stat-label { 
  color: var(--ink-500); 
  font-size: 10.5px; 
  text-transform: uppercase; 
  letter-spacing: .3px; 
}

.prop-stat-value { 
  font-weight: 700; 
  color: var(--ink-900); 
  margin-top: 2px; 
}

.chat-shell { 
  display: flex; 
  height: 540px; 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  overflow: hidden; 
  background: var(--surface); 
}

.chat-sidebar { 
  width: 280px; 
  flex-shrink: 0; 
  border-right: 1px solid var(--border); 
  overflow-y: auto; 
}

.chat-tenant-btn { 
  display: block; 
  width: 100%; 
  text-align: left; 
  padding: 12px 14px; 
  border-bottom: 1px solid var(--border); 
  background: transparent; 
  cursor: pointer; 
  text-decoration: none; 
  box-sizing: border-box; 
  transition: background 0.15s ease; 
}

.chat-tenant-btn:hover { 
  background: rgba(0,0,0,0.02); 
}

.chat-tenant-btn.active { 
  background: var(--bg); 
  border-left: 3px solid var(--primary); 
}

.chat-tenant-btn p { 
  margin: 0; 
}

.chat-main { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  min-width: 0; 
}

.chat-messages { 
  flex: 1; 
  overflow-y: auto; 
  padding: 20px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

.chat-bubble-row { 
  display: flex; 
}

.chat-bubble-row.me { 
  justify-content: flex-end; 
}

.chat-bubble { 
  max-width: 72%; 
}

.chat-bubble .notice-label { 
  font-size: 10px; 
  font-weight: 700; 
  color: var(--accent); 
  margin: 0 0 3px; 
}

.chat-bubble .bubble-text { 
  padding: 10px 14px; 
  border-radius: 16px; 
  font-size: 13px; 
  line-height: 1.45; 
}

.chat-bubble.me .bubble-text { 
  background: var(--primary); 
  color: #fff; 
}

.chat-bubble.tenant .bubble-text { 
  background: var(--bg); 
  color: var(--ink-900); 
}

.chat-bubble .bubble-time { 
  font-size: 10px; 
  color: var(--ink-300); 
  margin: 4px 0 0; 
}

.chat-bubble.me .bubble-time { 
  text-align: right; 
}

.chat-input-row { 
  display: flex; 
  gap: 8px; 
  padding: 14px; 
  border-top: 1px solid var(--border); 
}

.chat-input-row input { 
  flex: 1; 
  border-radius: 999px; 
  padding: 10px 16px; 
  border: 1px solid var(--border); 
  font-size: 13px; 
  font-family: inherit; 
}

.chat-input-row input:focus { 
  outline: none; 
  border-color: var(--accent); 
}

.chat-send-btn { 
  width: 38px; 
  height: 38px; 
  border-radius: 50%; 
  background: var(--primary); 
  color: #fff; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border: none; 
  cursor: pointer; 
  flex-shrink: 0; 
}

.chat-send-btn:hover { 
  background: var(--primary-light); 
}

.notif-wrap { 
  position: relative; 
}

.notif-bell { 
  position: relative; 
  background: none; 
  border: none; 
  cursor: pointer; 
  font-size: 18px; 
  color: var(--ink-500); 
  padding: 6px; 
  line-height: 1; 
}

.notif-bell:hover { 
  color: var(--primary); 
}

.notif-badge { 
  position: absolute; 
  top: 0; 
  right: 0; 
  background: var(--error); 
  color: #fff; 
  font-size: 10px; 
  font-weight: 700; 
  min-width: 16px; 
  height: 16px; 
  border-radius: 999px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 0 3px; 
}

.notif-dropdown { 
  display: none; 
  position: absolute; 
  top: 40px; 
  right: 0; 
  width: 320px; 
  max-width: 88vw; 
  max-height: 420px; 
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border); 
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18); 
  z-index: 60; 
}

.notif-dropdown.open { 
  display: block; 
}

.notif-dropdown-header { 
  display: flex; 
  justify-content: space-between;
  align-items: center; 
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.notif-dropdown-header strong { 
  font-size: 13px;
}

.notif-dropdown-header a { 
  font-size: 11.5px; 
  color: var(--primary-light); 
  font-weight: 600; 
}

.notif-item { 
  padding: 12px 14px; 
  border-bottom: 1px solid var(--border); 
}

.notif-item:last-child { 
  border-bottom: none; 
}

.notif-item p { 
  margin: 6px 0 0; 
  font-size: 12.5px; 
  color: var(--ink-900); 
  line-height: 1.4; 
}

.notif-item .notif-meta { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}

.notif-empty { 
  padding: 24px 14px; 
  text-align: center; 
  color: var(--ink-500); 
  font-size: 13px; 
}

.settings-row { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 14px 0; 
  border-bottom: 1px solid var(--border); 
  gap: 16px; 
}

.settings-row:last-child { 
  border-bottom: none; 
}

.settings-row p { 
  margin: 0; 
}

.settings-row .settings-note { 
  font-size: 11.5px; 
  color: var(--ink-500); 
  margin-top: 2px; 
}

.toggle-switch { 
  position: relative; 
  display: inline-block; 
  width: 44px; 
  height: 24px; 
  flex-shrink: 0; 
}

.toggle-switch input { 
  opacity: 0; 
  width: 0; 
  height: 0; 
}

.toggle-slider { 
  position: absolute; 
  cursor: pointer; 
  inset: 0; 
  background: var(--border); 
  transition: background .15s; 
  border-radius: 999px; 
}

.toggle-slider::before { 
  content: ""; 
  position: absolute; 
  height: 18px; 
  width: 18px; 
  left: 3px; 
  top: 3px; 
  background: #fff; 
  transition: transform .15s; 
  border-radius: 50%; 
}

.toggle-switch input:checked + .toggle-slider { 
  background: var(--primary); 
}

.toggle-switch input:checked + .toggle-slider::before { 
  transform: translateX(20px); 
}

.pending-list-row { 
  display: flex; 
  justify-content: space-between; 
  padding: 10px 0; 
  border-bottom: 1px solid var(--border); 
}

.pending-list-text { 
  margin: 0; 
  font-size: 13px; 
  font-weight: 600; 
}

.badge-lessor { 
  background: var(--accent-soft); 
  color: var(--primary); 
}

.badge-property { 
  background: var(--bg); 
  color: var(--primary); 
}

.empty-state-text { 
  color: var(--ink-500); 
  font-size: 13px; 
}

/* =============================================================
   6. PUBLIC LANDING PAGE (.landing namespace)
   ============================================================= */
body.landing { 
  margin: 0; 
  background: var(--l-bg); 
  color: var(--l-text); 
  font-family: "Inter", sans-serif; 
}

.landing a { 
  text-decoration: none; 
  color: inherit; 
}

.landing button, 
.landing input, 
.landing select { 
  font: inherit; 
}

.landing h1, 
.landing h2, 
.landing h3, 
.landing .brand { 
  font-family: "Plus Jakarta Sans", sans-serif; 
}

.l-nav { 
  height: 76px; 
  padding: 0 6%; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  background: #fff; 
  border-bottom: 1px solid var(--l-border); 
  position: sticky; 
  top: 0; 
  z-index: 20; 
}

.l-nav .brand-mark img { 
  height: 30px; 
}

.l-brand-badge { 
  display: inline-flex; 
  align-items: center; 
  background: #fff; 
  border-radius: 10px; 
  padding: 8px 14px; 
}

.l-brand-badge img { 
  display: block; 
}

.l-links { 
  display: flex; 
  gap: 30px; 
  align-items: center; 
  font-size: 14px; 
  font-weight: 600; 
  color: var(--l-navtext); 
}

.l-links a:not(.l-nav-cta):hover { 
  color: var(--l-navy); 
}

.l-nav-actions { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
}

.l-login-link { 
  font-weight: 700; 
  color: var(--l-navy); 
  font-size: 14px; 
}

a.l-nav-cta { 
  background: var(--l-navy); 
  color: #fff; 
  padding: 11px 20px; 
  border-radius: 8px; 
  font-weight: 700; 
}

a.l-nav-cta:hover { 
  background: var(--l-navy-dark); 
}

.l-menu { 
  display: none; 
  color: var(--l-navy); 
  font-size: 20px; 
  background: none; 
  border: none; 
  cursor: pointer; 
}

.l-hero { 
  padding: 76px 6% 90px; 
  display: grid; 
  grid-template-columns: 1.05fr .95fr; 
  gap: 60px; 
  align-items: center; 
}

.l-kicker { 
  color: var(--l-accent-dark); 
  text-transform: uppercase; 
  letter-spacing: 1.5px; 
  font-size: 12px; 
  font-weight: 700; 
}

.landing h1 { 
  font-weight: 800; 
  font-size: clamp(38px, 5.2vw, 64px); 
  line-height: 1.08; 
  letter-spacing: -1.5px; 
  color: var(--l-navy); 
  margin: 16px 0 20px; 
  max-width: 640px; 
}

.landing h1 span { 
  color: var(--l-accent-dark); 
}

.l-lead { 
  font-size: 17px; 
  line-height: 1.7; 
  color: var(--l-muted); 
  max-width: 520px; 
}

.l-buttons { 
  display: flex; 
  gap: 12px; 
  margin-top: 28px; 
  flex-wrap: wrap; 
}

.l-btn { 
  padding: 14px 24px; 
  border-radius: 8px; 
  font-weight: 700; 
  font-size: 14px; 
  border: 1px solid var(--l-navy); 
  display: inline-block; 
  cursor: pointer; 
}

.l-btn.l-btn-primary { 
  background: var(--l-navy); 
  color: #fff; 
}

.l-btn.l-btn-primary:hover { 
  background: var(--l-navy-dark); 
}

.l-btn.l-btn-secondary { 
  background: #fff; 
  color: var(--l-navy); 
}

.l-btn.l-btn-secondary:hover { 
  background: var(--l-bg); 
}

.l-hero-visual { 
  position: relative; 
}

.l-photo { 
  height: 460px; 
  border-radius: 20px; 
  background: linear-gradient(180deg, rgba(16,35,64,0) 45%, rgba(16,35,64,.65)), url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1200&q=85") center/cover; 
}

.l-floating { 
  position: absolute; 
  background: #fff; 
  border: 1px solid var(--l-border); 
  border-radius: 12px; 
  padding: 16px; 
  box-shadow: 0 14px 34px rgba(16,35,64,.14); 
}

.l-float-top { 
  top: 28px; 
  left: -30px; 
  width: 200px; 
}

.l-float-bottom { 
  right: -20px; 
  bottom: 28px; 
  width: 220px; 
}

.l-small { 
  font-size: 11px; 
  color: var(--l-muted); 
  text-transform: uppercase; 
  letter-spacing: .4px; 
}

.l-big { 
  font-size: 22px; 
  font-weight: 800; 
  margin-top: 5px; 
  color: var(--l-navy); 
}

.l-verified { 
  color: var(--l-success); 
  font-size: 11px; 
  font-weight: 700; 
  margin-top: 4px; 
}

.l-marquee { 
  background: var(--l-navy); 
  color: #fff; 
  padding: 14px 6%; 
  display: flex; 
  justify-content: space-between; 
  gap: 26px; 
  overflow: hidden; 
  font-size: 11px; 
  text-transform: uppercase; 
  letter-spacing: 1.5px; 
  font-weight: 700; 
}

.l-marquee span { 
  opacity: .85; 
}

.l-section { 
  padding: 72px 6%; 
  scroll-margin-top: 76px; 
}

.l-intro { 
  padding-top: 50px; 
  display: grid; 
  grid-template-columns: .8fr 1.2fr; 
  gap: 64px; 
  align-items: start; 
}

.l-label { 
  font-size: 11px; 
  letter-spacing: 1.5px; 
  text-transform: uppercase; 
  font-weight: 700; 
  color: var(--l-accent-dark); 
  margin-bottom: 8px; 
}

.landing h2 { 
  font-weight: 800; 
  font-size: clamp(28px, 4vw, 44px); 
  line-height: 1.15; 
  letter-spacing: -1px; 
  margin: 0 0 18px; 
  color: var(--l-navy); 
}

.l-intro p { 
  font-size: 17px; 
  line-height: 1.7; 
  color: var(--l-muted); 
  max-width: 640px; 
  margin: 0 0 20px; 
}

.l-intro p:last-child { 
  margin-bottom: 0; 
}

.l-roles { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 20px; 
  margin-top: 40px; 
}

.l-role { 
  background: #fff; 
  border: 1px solid var(--l-border); 
  border-radius: 16px; 
  padding: 32px; 
}

.l-icon-block { 
  width: 46px; 
  height: 46px; 
  border-radius: 10px; 
  display: grid; 
  place-items: center; 
  color: #fff; 
  font-weight: 800; 
  margin-bottom: 20px; 
}

.l-role:first-child .l-icon-block { 
  background: var(--l-navy); 
}

.l-role:last-child .l-icon-block { 
  background: var(--l-accent); 
}

.l-role h3 { 
  font-weight: 700; 
  font-size: 22px; 
  margin: 0 0 10px; 
  color: var(--l-text); 
}

.l-role p { 
  color: var(--l-muted); 
  margin: 0 0 16px; 
}

.l-role ul { 
  padding-left: 18px; 
  color: var(--l-navtext); 
  line-height: 2; 
  font-size: 14px; 
  margin: 0; 
}

.l-role ul li::marker { 
  color: var(--l-accent-dark); 
}

.l-features { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 16px; 
  margin-top: 32px; 
}

.l-feature { 
  background: #fff; 
  border: 1px solid var(--l-border); 
  padding: 26px; 
  border-radius: 14px; 
}

.l-fico { 
  width: 40px; 
  height: 40px; 
  border-radius: 10px; 
  display: grid; 
  place-items: center; 
  background: var(--l-navy); 
  color: #fff; 
  font-weight: 800; 
  font-size: 13px; 
  margin-bottom: 16px; 
}

.l-feature:nth-child(even) .l-fico { 
  background: var(--l-accent); 
}

.l-feature h3 { 
  margin: 0 0 8px; 
  font-size: 17px; 
  color: var(--l-text); 
}

.l-feature p { 
  font-size: 14px; 
  color: var(--l-muted); 
  line-height: 1.65; 
  margin: 0; 
}

.l-stats { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 14px; 
  margin-top: 32px; 
}

.l-stat { 
  background: #fff; 
  border: 1px solid var(--l-border); 
  border-radius: 14px; 
  padding: 24px; 
}

.l-stat strong { 
  display: block; 
  font-size: 34px; 
  font-weight: 800; 
  color: var(--l-navy); 
}

.l-stat span { 
  font-size: 12px; 
  color: var(--l-muted); 
}

.l-workflow { 
  background: var(--l-navy); 
  color: #fff; 
  padding-top: 72px; 
  padding-bottom: 72px; 
}

.l-workflow .l-label { 
  color: var(--l-accent); 
}

.l-workflow h2 { 
  color: #fff; 
  max-width: 720px; 
  margin: 0 0 36px; 
}

.l-steps { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1px; 
  margin-top: 0; 
  background: rgba(255,255,255,.12); 
  border-radius: 16px; 
  overflow: hidden; 
}

.l-step { 
  background: var(--l-navy-dark); 
  padding: 28px; 
  min-height: 190px; 
}

.l-stepnum { 
  font-size: 12px; 
  color: var(--l-accent); 
  font-weight: 700; 
}

.l-step h3 { 
  font-size: 22px; 
  margin: 24px 0 10px; 
  color: #fff; 
}

.l-step p { 
  color: rgba(255,255,255,.68); 
  font-size: 14px; 
  line-height: 1.55; 
  margin: 0; 
}

.l-cta { 
  margin: 0 6% 90px; 
  padding: 60px; 
  border-radius: 20px; 
  background: var(--l-navy); 
  text-align: center; 
  position: relative; 
  overflow: hidden; 
}

.l-cta::before { 
  content: ""; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 4px; 
  background: var(--l-gold); 
}

.l-cta h2 { 
  color: #fff; 
  max-width: 760px; 
  margin: 0 auto 16px; 
}

.l-cta p { 
  color: rgba(255,255,255,.7); 
  max-width: 600px; 
  margin: 0 auto 28px; 
}

a.l-btn-gold { 
  background: var(--l-gold); 
  color: var(--l-navy-dark); 
  border: 1px solid var(--l-gold); 
  display: inline-block; 
  padding: 14px 24px; 
  border-radius: 8px; 
  font-weight: 700; 
  font-size: 14px; 
  cursor: pointer; 
}

.l-footer { 
  background: var(--l-navy-dark); 
  color: rgba(255,255,255,.65); 
  padding: 50px 6%; 
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr; 
  gap: 40px; 
}

.l-footbrand { 
  margin-bottom: 12px; 
}

.l-footbrand img { 
  display: block; 
}

.l-foot h4 { 
  color: #fff; 
  margin-top: 0; 
  font-size: 14px; 
}

.l-foot a { 
  display: block; 
  font-size: 13px; 
  margin: 8px 0; 
  color: rgba(255,255,255,.6); 
}

.l-foot a:hover { 
  color: #fff; 
}

.l-copyright { 
  border-top: 1px solid rgba(255,255,255,.15); 
  margin-top: 30px; 
  padding-top: 20px; 
  font-size: 11px; 
  grid-column: 1/-1; 
  color: rgba(255,255,255,.5); 
}

.l-modal-overlay { 
  display: none; 
  position: fixed; 
  inset: 0; 
  background: rgba(10,24,48,.6); 
  z-index: 100; 
  align-items: center; 
  justify-content: center; 
  padding: 20px; 
}

.l-modal-overlay.open { 
  display: flex; 
}

.l-modal { 
  background: #fff; 
  border-radius: 16px; 
  width: 100%; 
  max-width: 440px; 
  max-height: 90vh; 
  overflow-y: auto; 
  position: relative; 
  padding: 32px; 
}

.l-modal-close { 
  position: absolute; 
  top: 16px; 
  right: 16px; 
  font-size: 22px; 
  color: var(--l-muted); 
  background: none; 
  border: none; 
  cursor: pointer; 
}

.l-modal-tabs { 
  display: flex; 
  gap: 4px; 
  background: var(--l-bg); 
  border-radius: 10px; 
  padding: 4px; 
  margin-bottom: 24px; 
}

.l-modal-tab { 
  flex: 1; 
  text-align: center; 
  padding: 9px; 
  border-radius: 8px; 
  font-size: 13px; 
  font-weight: 700; 
  color: var(--l-muted); 
  cursor: pointer; 
  border: none; 
  background: none; 
}

.l-modal-tab.active { 
  background: #fff; 
  color: var(--l-navy); 
  box-shadow: 0 1px 3px rgba(0,0,0,.08); 
}

.l-modal-pane { 
  display: none; 
}

.l-modal-pane.active { 
  display: block; 
}

.l-field { 
  margin-bottom: 14px; 
}

.l-field label { 
  display: block; 
  font-size: 12.5px; 
  font-weight: 600; 
  margin-bottom: 5px; 
  color: var(--l-text); 
}

.l-field input, 
.l-field select { 
  width: 100%; 
  padding: 10px 12px; 
  border: 1px solid var(--l-border); 
  border-radius: 9px; 
  font-size: 13.5px; 
}

.l-field input:focus { 
  outline: none; 
  border-color: var(--l-accent); 
}

.l-modal-submit { 
  width: 100%; 
  background: var(--l-navy); 
  color: #fff; 
  padding: 12px; 
  border-radius: 9px; 
  border: none; 
  font-weight: 700; 
  font-size: 14px; 
  cursor: pointer; 
  margin-top: 6px; 
}

.l-modal-submit:hover { 
  background: var(--l-navy-dark); 
}

.l-modal-error { 
  background: #FBE9E9; 
  color: #D64545; 
  padding: 10px 12px; 
  border-radius: 8px; 
  font-size: 12.5px; 
  margin-bottom: 14px; 
}

.l-modal-hint { 
  font-size: 11.5px; 
  color: var(--l-muted); 
  margin: 0 0 14px; 
}

.l-wizard-steps { 
  display: flex; 
  align-items: flex-start; 
  margin-bottom: 22px; 
}

.l-wizard-dot-wrap { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
}

.l-wizard-step-dot { 
  width: 28px; 
  height: 28px; 
  border-radius: 50%; 
  background: #fff; 
  border: 2px solid var(--l-border); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 12px; 
  font-weight: 700; 
  color: var(--l-muted); 
  flex-shrink: 0; 
}

.l-wizard-step-dot.active { 
  border-color: var(--l-navy); 
  color: var(--l-navy); 
}

.l-wizard-step-dot.done { 
  background: var(--l-navy); 
  border-color: var(--l-navy); 
  color: #fff; 
}

.l-wizard-label { 
  font-size: 10px; 
  text-align: center; 
  margin-top: 4px; 
  color: var(--l-muted); 
  font-weight: 600; 
}

.l-wizard-line { 
  flex: 1; 
  height: 2px; 
  background: var(--l-border); 
  margin: 13px 4px 0; 
}

.l-wizard-line.done { 
  background: var(--l-navy); 
}

.l-wizard-pane { 
  display: none; 
}

.l-wizard-pane.active { 
  display: block; 
}

.l-wizard-nav { 
  display: flex; 
  gap: 10px; 
  margin-top: 20px; 
}

.l-wizard-btn { 
  flex: 1; 
  padding: 12px; 
  border-radius: 9px; 
  font-weight: 700; 
  font-size: 14px; 
  cursor: pointer; 
  border: 1px solid var(--l-border); 
  background: #fff; 
  color: var(--l-navy); 
}

.l-wizard-btn.primary { 
  background: var(--l-navy); 
  color: #fff; 
  border-color: var(--l-navy); 
}

.l-wizard-btn.primary:hover { 
  background: var(--l-navy-dark); 
}

.l-upload-box { 
  display: block; 
  border: 1.5px dashed var(--l-border); 
  border-radius: 10px; 
  padding: 16px; 
  text-align: center; 
  cursor: pointer; 
  transition: .15s; 
  margin-bottom: 10px; 
}

.l-upload-box:hover { 
  border-color: var(--l-accent); 
  background: var(--l-bg); 
}

.l-upload-box.has-file { 
  border-style: solid; 
  border-color: #16A34A; 
  background: rgba(22,163,74,.05); 
}

.l-upload-box input[type="file"] { 
  display: none; 
}

.l-upload-icon { 
  font-size: 18px; 
  color: var(--l-muted); 
  margin-bottom: 4px; 
}

.l-upload-box.has-file .l-upload-icon { 
  color: #16A34A; 
}

.l-upload-text { 
  font-size: 12px; 
  font-weight: 700; 
  color: var(--l-navy); 
}

.l-upload-filename { 
  font-size: 11px; 
  color: var(--l-muted); 
  margin-top: 2px; 
  word-break: break-all; 
  min-height: 14px; 
}

/* =============================================================
   7. FILTER BAR, PAGINATION & DRAWERS
   ============================================================= */
.filter-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.search-wrapper {
  flex: 1;
  min-width: 0;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  font-size: 13px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  background: var(--bg);
  color: var(--ink-900);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.filter-select {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--ink-900);
  min-width: 150px;
  cursor: pointer;
}

.action-cell { 
  text-align: right; 
}

.btn-sm { 
  padding: 6px 14px; 
  font-size: 12px; 
  display: inline-flex; 
  width: auto; 
}

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.pagination-bar.hidden,
.hidden-row {
  display: none;
}

.page-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.page-btn {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-900);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  min-width: 32px;
}

.page-btn:disabled {
  background: var(--bg);
  color: var(--ink-300);
  cursor: not-allowed;
}

.page-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: flex-end;
  z-index: 50;
}

.drawer-content {
  background: #fff;
  width: 420px;
  max-width: 92vw;
  height: 100%;
  padding: 24px;
  overflow-y: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.drawer-title { 
  margin: 0; 
}

.drawer-close { 
  font-size: 20px; 
  color: var(--ink-500); 
  text-decoration: none; 
  line-height: 1; 
}

.drawer-card { 
  margin-bottom: 16px; 
}

.drawer-section-title { 
  font-size: 12px; 
  font-weight: 700; 
  margin-bottom: 8px; 
}

.doc-list-wrap { 
  margin-bottom: 20px; 
}

.doc-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}

.doc-label { 
  font-size: 12.5px; 
}

.doc-link { 
  font-size: 12px; 
  color: var(--primary); 
  font-weight: 600; 
}

.doc-missing { 
  font-size: 12px; 
  color: var(--ink-300); 
}

.action-group { 
  display: flex; 
  gap: 12px; 
}

.action-group form { 
  flex: 1; 
  margin: 0; 
}

.btn-approve { 
  background: var(--success); 
  color: #fff; 
  width: 100%; 
}

.btn-reject { 
  background: var(--error); 
  color: #fff; 
  width: 100%; 
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.photo-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.info-text { 
  margin: 4px 0; 
  font-size: 13px; 
}

.col-span-full { 
  grid-column: 1 / -1; 
}

.text-center { 
  text-align: center; 
}

.p-24 { 
  padding: 24px; 
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

.hidden-toast {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.toast-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

.toast-success {
  background: var(--success-soft);
  color: var(--success);
}

.toast-error {
  background: var(--error-soft);
  color: var(--error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  backdrop-filter: blur(2px);
}

.modal-card {
  width: 400px;
  max-width: 90vw;
  text-align: center;
  padding: 32px;
  border-radius: 16px;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--error-soft);
  color: var(--error);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.modal-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.modal-text {
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
  color: var(--ink-500);
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0;
}

/* Button Utilities */
.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-900);
}

.btn-outline:hover {
  background: var(--bg);
}

.btn-danger-soft {
  background: var(--error-soft);
  color: var(--error);
  border: none;
}

.btn-danger-soft:hover {
  background: #f9dcdc;
}

.flex-1 {
  flex: 1;
}

.action-inline {
  display: inline-flex;
  margin: 0;
}

/* Notify Module & Forms */
.action-bar-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--primary-light);
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--primary);
}

.checkbox-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.checkbox-card:hover {
  border-color: var(--accent);
}

.checkbox-label {
  font-size: 12.5px;
  font-weight: 500;
}

.radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.radio-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.radio-pill:hover {
  border-color: var(--accent);
  background: var(--bg);
}

.mt-16 {
  margin-top: 16px;
}

.w-100 {
  width: 100%;
  justify-content: center;
}

.drawer-empty-text {
  font-size: 13px;
  color: var(--ink-500);
}

/* Revenue & Progress Bars */
.rev-bar-wrap {
  margin-bottom: 12px;
}

.rev-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 4px;
}

.rev-bar-label {
  color: var(--ink-500);
}

.rev-bar-value {
  font-weight: 700;
  color: var(--ink-900);
}

.rev-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.rev-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.section-heading {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 14px 0;
  color: var(--ink-900);
}

.mt-2 {
  margin-top: 2px;
}

/* Revenue Dashboard Redesign */
.rev-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.rev-header-titles {
  flex: 1;
  min-width: 300px;
}

.rev-header-titles .page-title {
  margin-bottom: 4px;
  margin-top: 0;
}

.rev-header-titles .page-subtitle {
  margin: 0;
}

.rev-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
  flex-wrap: wrap;
}

.rev-toolbar .search-wrapper {
  margin: 0;
  width: 280px;
}

.rev-toolbar .filter-select {
  margin: 0;
}

.kpi-enhanced {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.kpi-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.kpi-icon-box.blue {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.kpi-icon-box.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.kpi-icon-box.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.kpi-icon-box.orange {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.kpi-details {
  flex: 1;
}

.kpi-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

.kpi-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink-900);
  margin: 0 0 4px 0;
  line-height: 1;
}

/* Overview Pending Verifications List */
.pending-list-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 0; 
    border-bottom: 1px solid var(--border); 
}
.pending-list-row:last-of-type { 
    border-bottom: none; 
}
.pending-list-text { 
    margin: 0; 
    font-weight: 500; 
    font-size: 14px; 
}
.text-center { 
    text-align: center; 
}
.p-24 { 
    padding: 24px; 
}

/* Audit Logs Utility Classes */
.text-muted { 
    color: var(--ink-500); 
}

.font-semibold { 
    font-weight: 600; 
}

/* Platform Settings Utilities */
.card-md {
  max-width: 560px;
}

.settings-label-text {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

.commission-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 160px;
}

.commission-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}

.commission-symbol {
  font-weight: 700;
  color: var(--ink-500);
}

.mb-24 { 
    margin-bottom: 24px; 
}

.mb-12 { 
    margin-bottom: 12px;
}

/* Lessor Overview & Analytics */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.analytics-card {
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.analytics-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 2px 0;
}

.analytics-card-subtitle {
  font-size: 11.5px;
  color: var(--ink-500);
  margin: 0 0 20px 0;
}

.stat-bar-wrap {
  margin-bottom: 12px;
}

.stat-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 4px;
}

.stat-bar-label {
  color: var(--ink-500);
}

.stat-bar-value {
  font-weight: 700;
  color: var(--ink-900);
}

.stat-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Lessor Overview & Alerts */
.alert-banner {
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background: linear-gradient(90deg, #FFFFFF, var(--accent-soft));
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.alert-banner .btn {
    width: max-content;
    white-space: nowrap;
}

.alert-content { 
    display: flex; 
    align-items: center; 
    gap: 14px; }

.alert-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.alert-title {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.alert-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ink-500);
}

.list-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.list-row:last-child {
  border-bottom: none;
}

.list-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.list-subtitle {
  margin: 0;
  font-size: 12px;
  color: var(--ink-500);
}

.text-primary {
  color: var(--primary) !important;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
}

/* =============================================================
   8. MEDIA QUERIES (Responsive Design)
   ============================================================= */
@media (max-width: 900px) {
  .sidebar {
    position: fixed; 
    left: 0; 
    top: 0;
    transform: translateX(-100%);
    box-shadow: 8px 0 30px rgba(0,0,0,.25);
  }
  .sidebar.open { 
    transform: translateX(0); 
  }
  .sidebar-overlay.open {
    display: block; 
    position: fixed; 
    inset: 0;
    background: rgba(0,0,0,.4); 
    z-index: 35;
  }
  .menu-toggle { 
    display: inline-flex; 
    align-items: center; 
  }
  .topbar .email-full { 
    display: none; 
  }
  .content { 
    padding: 18px; 
  }
  .kpi-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
  }
  .kpi-value { 
    font-size: 21px; 
  }
}

@media (max-width: 860px) {
  .auth-shell { 
    flex-direction: column; 
  }
  .auth-visual { 
    display: none; 
  }
  .auth-form-side { 
    padding: 32px 20px; 
    align-items: flex-start; 
    padding-top: 48px; 
  }
}

@media (max-width: 760px) {
  .two-col { 
    grid-template-columns: 1fr; 
  }
}

@media (max-width: 700px) {
  .chat-shell { 
    flex-direction: column; 
    height: auto; 
  }
  .chat-sidebar { 
    width: 100%; 
    max-height: 150px; 
    border-right: none; 
    border-bottom: 1px solid var(--border); 
  }
  .chat-messages { 
    max-height: 340px; 
  }
}

@media (max-width: 520px) {
  .kpi-grid { 
    grid-template-columns: 1fr 1fr; 
  }
  .topbar { 
    padding: 12px 14px; 
  }
  .content { 
    padding: 14px; 
  }
  .card { 
    padding: 16px; 
    border-radius: 10px; 
  }
  .auth-form-side { 
    padding: 24px 16px; 
  }
  .filter-bar { 
    flex-wrap: wrap; 
  }
  .filter-select { 
    width: 100%; 
  }
}

@media (max-width: 900px) {
  .l-links a:not(.l-nav-cta):not(.l-login-link) { 
    display: none; 
  }
  .l-menu { 
    display: block; 
  }
  .l-hero, 
  .l-intro { 
    grid-template-columns: 1fr; 
  }
  .l-hero { 
    padding-top: 50px; 
  }
  .l-photo { 
    height: 380px; 
  }
  .l-features, 
  .l-roles { 
    grid-template-columns: 1fr; 
  }
  .l-steps, 
  .l-stats { 
    grid-template-columns: 1fr 1fr; 
  }
  .l-footer { 
    grid-template-columns: 1fr 1fr; 
  }
}

@media (max-width: 560px) {
  .l-nav { 
    padding: 0 5%; 
  }
  .l-hero, 
  .l-section { 
    padding-left: 5%; 
    padding-right: 5%; 
  }
  .landing h1 { 
    font-size: 38px; 
    letter-spacing: -1px; 
  }
  .l-photo { 
    height: 300px; 
  }
  .l-float-top { 
    left: -8px; 
  }
  .l-float-bottom { 
    right: -6px; 
    bottom: 16px; 
  }
  .l-steps, 
  .l-stats { 
    grid-template-columns: 1fr; 
  }
  .l-marquee span:nth-child(n+3) { 
    display: none; 
  }
  .l-cta { 
    margin: 0 5% 60px; 
    padding: 36px 20px; 
  }
  .l-footer { 
    grid-template-columns: 1fr; 
    padding: 40px 5%; 
  }
  .l-modal { 
    padding: 24px 20px; 
  }
}

/* =============================================================
   6b. LANDING — LIVE LISTINGS, LISTING DETAILS, MOBILE MENU
   ============================================================= */
.l-listings-sub { color: var(--l-muted); margin: -6px 0 22px; font-size: 15px; }
/* Tighter spacing around the Live listings section (the sections on either side already add 72px of their own) */
.l-section#portfolio { padding-top: 24px; padding-bottom: 24px; }

.l-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.l-chip {
  border: 1px solid var(--l-border); background: #fff; color: var(--l-navtext);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.l-chip:hover { border-color: var(--l-navy); color: var(--l-navy); }
.l-chip.active { background: var(--l-navy); border-color: var(--l-navy); color: #fff; }

.l-listings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.l-listing {
  background: #fff; border: 1px solid var(--l-border); border-radius: 16px; overflow: hidden;
  cursor: pointer; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.l-listing:hover, .l-listing:focus-visible {
  transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16,35,64,.12); border-color: #cbd5e1; outline: none;
}
.l-listings .l-extra { display: none; }
.l-listings.l-expanded .l-extra { display: flex; }
.l-listings .l-listing.l-hidden { display: none !important; }

.l-listing-photo {
  position: relative; height: 190px; background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  background-size: cover; background-position: center;
}
.l-listing-nophoto {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--l-muted); font-size: 13px; font-weight: 600;
}
.l-listing-type {
  position: absolute; left: 14px; top: 14px; background: var(--l-navy); color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
}
.l-listing-type.l-static { position: static; display: inline-block; }
.l-listing-count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(10,24,48,.72); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 8px;
}
.l-listing-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.l-listing-body h3 { margin: 10px 0 4px; font-size: 17px; color: var(--l-navy); }
.l-listing-addr { font-size: 13px; color: var(--l-muted); margin: 0; line-height: 1.5; }
.l-listing-foot {
  margin-top: auto; padding-top: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.l-listing-rent { font-weight: 800; color: var(--l-navy); font-size: 18px; font-family: "Plus Jakarta Sans", sans-serif; }
.l-listing-rent small { font-weight: 500; color: var(--l-muted); font-size: 12.5px; font-family: "Inter", sans-serif; }
.l-listing-more { font-size: 13px; font-weight: 700; color: var(--l-accent-dark); white-space: nowrap; }

.l-status {
  display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 10.5px; font-weight: 800;
  letter-spacing: .4px; text-transform: uppercase; align-self: flex-start;
}
.l-status-available { background: rgba(22,163,74,.1);  color: var(--l-success); }
.l-status-occupied  { background: rgba(16,35,64,.08);  color: var(--l-navy); }
.l-status-reserved  { background: rgba(245,158,11,.14); color: #B45309; }

.l-listings-empty {
  background: #fff; border: 1px dashed var(--l-border); border-radius: 16px; padding: 40px; text-align: center;
}
.l-listings-empty h3 { margin: 0 0 8px; color: var(--l-navy); }
.l-listings-empty p { color: var(--l-muted); margin: 0 auto 20px; max-width: 520px; }

/* Listing details modal */
.l-modal.l-lmodal { max-width: 760px; padding: 0; }
.l-lgallery {
  position: relative; height: 340px; background: #e2e8f0 center / cover no-repeat;
  border-radius: 16px 16px 0 0;
}
.l-lgallery.l-nophoto { background: linear-gradient(135deg, #e2e8f0, #f1f5f9); }
.l-lnav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.92); color: var(--l-navy); font-size: 26px; line-height: 1;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.l-lprev { left: 14px; } .l-lnext { right: 14px; }
.l-lcounter {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(10,24,48,.72);
  color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px;
}
.l-lgallery.l-nophoto .l-lcounter { background: none; color: var(--l-muted); bottom: auto; top: 50%; transform: translate(-50%,-50%); }
.l-lmodal .l-modal-close {
  z-index: 2; background: rgba(255,255,255,.92); width: 36px; height: 36px; border-radius: 50%;
  top: 14px; right: 14px; display: flex; align-items: center; justify-content: center;
}
.l-lcontent { padding: 24px 28px 28px; }
.l-lhead { display: flex; gap: 8px; align-items: center; }
.l-lcontent h3 { margin: 12px 0 4px; font-size: 22px; color: var(--l-navy); }
.l-lfacts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; align-items: stretch;
}
.l-lfacts > div {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--l-bg); border: 1px solid var(--l-border); border-radius: 12px; padding: 13px 18px; min-width: 0;
}
.l-lfacts span {
  flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--l-muted);
  text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.l-lfacts strong { display: block; margin: 0; color: var(--l-navy); font-size: 15px; text-align: right; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
/* Monthly rent: highlighted bar across the top */
.l-lfacts > .l-fact-rent { grid-column: 1 / -1; background: var(--l-navy); border-color: var(--l-navy); padding: 16px 22px; }
.l-lfacts > .l-fact-rent span { color: rgba(255,255,255,.72); font-size: 12px; }
.l-lfacts > .l-fact-rent strong { color: #fff; font-size: 24px; font-weight: 800; }
.l-lfacts > .l-fact-full { grid-column: 1 / -1; }
/* Long text rows: full width, label column on the left, text on the right */
.l-lfacts > .l-fact-wide { grid-column: 1 / -1; align-items: flex-start; justify-content: flex-start; gap: 20px; }
.l-lfacts > .l-fact-wide span { flex: 0 0 130px; padding-top: 3px; }
.l-lfacts > .l-fact-wide strong { flex: 1; text-align: left; font-weight: 600; }
.l-lfacts .l-fact-tags {
  flex: 1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; background: none; border: 0; border-radius: 0;
}
.l-lfacts .l-fact-tags em {
  font-style: normal; font-size: 13px; font-weight: 600; color: var(--l-navy);
  background: #fff; border: 1px solid var(--l-border); border-radius: 999px; padding: 4px 11px;
}
.l-ldesc { color: var(--l-text); font-size: 14px; line-height: 1.65; white-space: pre-line; margin: 0 0 14px; }
.l-lmap { display: inline-block; font-weight: 700; color: var(--l-accent-dark); font-size: 14px; margin-bottom: 18px; }
.l-lcta { border-top: 1px solid var(--l-border); padding-top: 16px; font-size: 13.5px; color: var(--l-muted); }
.l-lcta p { margin: 6px 0; }
.l-lcta a { color: var(--l-navy); font-weight: 700; }

/* Mobile menu */
.l-mobile-menu {
  position: sticky; top: 76px; z-index: 19; background: #fff; border-bottom: 1px solid var(--l-border);
  display: flex; flex-direction: column; padding: 8px 6% 16px; box-shadow: 0 10px 24px rgba(16,35,64,.08);
}
.l-mobile-menu[hidden] { display: none; }
.l-mobile-menu a { padding: 12px 0; font-weight: 600; color: var(--l-navtext); border-bottom: 1px solid var(--l-border); }
.l-mobile-menu a.l-nav-cta { margin-top: 12px; text-align: center; border: none; color: #fff; }

@media (max-width: 1000px) { .l-listings { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .l-nav-actions { display: none; }
}
@media (min-width: 901px) { .l-mobile-menu { display: none !important; } }
@media (max-width: 640px) {
  .l-listings { grid-template-columns: 1fr; }
  .l-lgallery { height: 240px; }
  .l-lcontent { padding: 20px; }
  .l-lfacts { grid-template-columns: 1fr; }
  .l-lfacts > .l-fact-wide { flex-direction: column; gap: 6px; }
  .l-lfacts > .l-fact-wide span { flex-basis: auto; padding-top: 0; }
}