/* ===========================
   DESIGN SYSTEM & VARIABLES
   Cheston Property — Navy/Gold Brand
   =========================== */
:root {
  /* === Brand Colors === */
  --navy:          #0D2B55;
  --navy-deep:     #091e3e;
  --navy-light:    #E8EFF7;
  --gold:          #C9A84C;
  --gold-light:    #F5EDD6;
  --gold-hover:    #b8942e;

  /* === Backgrounds === */
  --bg-primary:    #F2F2F2;
  --bg-secondary:  #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-card-alt:   #F5EDD6;
  --bg-card-navy:  #E8EFF7;
  --bg-input:      #FFFFFF;
  --bg-sidebar:    #E8EFF7;

  /* === Borders === */
  --border:        rgba(13, 43, 85, 0.14);
  --border-focus:  #C9A84C;

  /* === Text === */
  --text-primary:   #2D2D2D;
  --text-secondary: #555555;
  --text-muted:     #888888;
  --text-navy:      #0D2B55;
  --text-white:     #FFFFFF;

  /* === Semantic === */
  --success:       #1a8c5b;
  --success-light: rgba(26,140,91,0.12);
  --warning:       #b87d0d;
  --warning-light: rgba(184,125,13,0.12);
  --danger:        #c0392b;
  --danger-light:  rgba(192,57,43,0.12);
  --info:          #1a5fa8;
  --info-light:    rgba(26,95,168,0.1);

  /* === Gradients === */
  --gradient-primary: linear-gradient(135deg, #0D2B55 0%, #1a4a8a 100%);
  --gradient-gold:    linear-gradient(135deg, #C9A84C 0%, #e8c46a 100%);
  --gradient-card:    linear-gradient(135deg, #F5EDD6 0%, #EDE3C8 100%);

  /* === Shadows === */
  --shadow-sm:   0 2px 8px rgba(13, 43, 85, 0.1);
  --shadow-card: 0 4px 20px rgba(13, 43, 85, 0.12);
  --shadow-lg:   0 12px 40px rgba(13, 43, 85, 0.18);
  --shadow-gold: 0 4px 18px rgba(201, 168, 76, 0.25);

  /* === Misc === */
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    18px;
  --font:         'Inter', sans-serif;
  --transition:   all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===========================
   SUBTLE BACKGROUND TEXTURE
   =========================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(13,43,85,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#app { position: relative; z-index: 1; }

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--text-navy); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }

/* ===========================
   LAYOUT
   =========================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ===========================
   NAVBAR — Deep Navy
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  padding: 0 24px;
  box-shadow: 0 2px 16px rgba(13,43,85,0.25);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}
.logo-text { font-weight: 800; font-size: 1.1rem; color: #fff; letter-spacing: 0.3px; }
.logo-sub { font-size: 0.68rem; color: var(--gold); font-weight: 400; display: block; letter-spacing: 0.2px; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: var(--radius-sm);
}
.nav-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
}
.nav-user-name { font-size: 0.85rem; font-weight: 600; color: #fff; }
.nav-user-role { font-size: 0.69rem; color: var(--gold); }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }

/* Primary: Navy bg + Gold text */
.btn-primary {
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--navy-deep);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* Secondary: White + Navy border */
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--navy);
}

/* Gold: Gold bg + Navy text */
.btn-gold {
  background: var(--gradient-gold);
  color: var(--navy);
  border: 2px solid var(--gold);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: var(--gold-hover); box-shadow: 0 6px 22px rgba(201,168,76,0.4); }

.btn-danger {
  background: var(--danger-light);
  color: var(--danger);
  border: 1.5px solid rgba(192,57,43,0.3);
}
.btn-danger:hover { background: rgba(192,57,43,0.22); }

.btn-success {
  background: var(--success-light);
  color: var(--success);
  border: 1.5px solid rgba(26,140,91,0.3);
}
.btn-success:hover { background: rgba(26,140,91,0.22); }

.btn-sm  { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===========================
   CARDS
   =========================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover { border-color: rgba(201,168,76,0.4); box-shadow: var(--shadow-card); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold-light);
}
.card-title { font-size: 1rem; font-weight: 700; color: var(--navy); }

/* ===========================
   FORMS & INPUTS
   =========================== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}
.form-label .required { color: var(--danger); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-control:hover { border-color: rgba(201,168,76,0.5); }
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
  background: #fff;
}
.form-control::placeholder { color: #b0b0b0; }

textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.6; }

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230D2B55' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
select.form-control option { background: #fff; color: var(--text-primary); }

.form-hint  { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 5px; display: none; }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid + .form-error { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ===========================
   FILE UPLOAD
   =========================== */
.file-upload-zone {
  border: 2px dashed rgba(201,168,76,0.4);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gold-light);
  position: relative;
}
.file-upload-zone:hover,
.file-upload-zone.drag-over {
  border-color: var(--gold);
  background: #EDE3C8;
}
.file-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-upload-icon  { font-size: 2rem; margin-bottom: 10px; opacity: 0.7; }
.file-upload-text  { font-size: 0.875rem; color: var(--text-secondary); }
.file-upload-text strong { color: var(--navy); }
.file-upload-hint  { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(26,140,91,0.08);
  border: 1px solid rgba(26,140,91,0.25);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--success);
}
.file-item .file-remove {
  margin-left: auto;
  cursor: pointer;
  color: var(--text-muted);
  background: none;
  border: none;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s;
}
.file-item .file-remove:hover { color: var(--danger); }

/* Camera capture buttons */
.camera-capture-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.btn-capture {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--navy);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-capture input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.btn-capture:hover {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

/* ===========================
   BADGES & STATUS PILLS
   =========================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-active  { background: rgba(26,140,91,0.12); color: var(--success); border: 1px solid rgba(26,140,91,0.3); }
.badge-inactive{ background: var(--danger-light); color: var(--danger); border: 1px solid rgba(192,57,43,0.3); }
.badge-pending { background: var(--warning-light); color: var(--warning); border: 1px solid rgba(184,125,13,0.3); }
.badge-admin   { background: rgba(13,43,85,0.12); color: var(--navy); border: 1px solid rgba(13,43,85,0.3); }
.badge-sale    { background: rgba(26,140,91,0.12); color: var(--success); border: 1px solid rgba(26,140,91,0.3); }
.badge-rent    { background: rgba(201,168,76,0.18); color: #8a6800; border: 1px solid rgba(201,168,76,0.4); }

/* ===========================
   LOGIN PAGE
   =========================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: linear-gradient(145deg, #0D2B55 0%, #1a4a8a 60%, #0D2B55 100%);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(201,168,76,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 20%, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.login-container { width: 100%; max-width: 430px; position: relative; }
.login-header { text-align: center; margin-bottom: 32px; }
.login-logo {
  width: 68px;
  height: 68px;
  background: var(--gradient-gold);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 18px;
  box-shadow: 0 8px 28px rgba(201,168,76,0.5);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.login-title    { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 6px; }
.login-subtitle { color: var(--gold); font-size: 0.875rem; opacity: 0.9; }

.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  border-top: 4px solid var(--gold);
}
.login-tabs {
  display: flex;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}
.login-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  border: none;
  background: none;
  font-family: var(--font);
}
.login-tab.active {
  background: var(--navy);
  color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.password-wrapper { position: relative; }
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  transition: color 0.2s;
}
.password-toggle:hover { color: var(--navy); }

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===========================
   DASHBOARD LAYOUT
   =========================== */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 66px);
  background: var(--bg-primary);
}

/* ===========================
   SIDEBAR — Light Navy
   =========================== */
.sidebar {
  width: 244px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 2px solid rgba(13,43,85,0.1);
  padding: 24px 0;
  position: sticky;
  top: 66px;
  height: calc(100vh - 66px);
  overflow-y: auto;
}

.sidebar-section { margin-bottom: 8px; }
.sidebar-label {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 18px 8px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  border-radius: 0;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-item:hover {
  background: rgba(13,43,85,0.06);
  color: var(--navy);
  border-left-color: rgba(201,168,76,0.5);
}
.sidebar-item.active {
  background: rgba(13,43,85,0.09);
  color: var(--navy);
  border-left-color: var(--gold);
  font-weight: 700;
}
.sidebar-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-badge {
  margin-left: auto;
  background: var(--navy);
  color: var(--gold);
  border-radius: 100px;
  padding: 1px 8px;
  font-size: 0.64rem;
  font-weight: 700;
}

.main-content { flex: 1; padding: 32px; overflow-x: hidden; }
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { padding: 20px 16px; }
}

/* ===========================
   STATS CARDS
   =========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--stat-color, var(--navy));
  opacity: 0.08;
  transform: translate(22px, -22px);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--gold); }
.stat-icon {
  font-size: 1.5rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gold-light);
  margin-bottom: 4px;
}
.stat-value { font-size: 1.85rem; font-weight: 800; line-height: 1; color: var(--navy); }
.stat-label { font-size: 0.77rem; color: var(--text-muted); font-weight: 500; }

/* ===========================
   DATA TABLES — Navy headers, alternating rows
   =========================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--navy);
  padding: 13px 16px;
  text-align: left;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
  border-bottom: 2px solid var(--gold);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(13,43,85,0.07);
  vertical-align: middle;
  background: #fff;
}
.data-table tbody tr:nth-child(even) td { background: var(--bg-primary); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover td { background: var(--gold-light) !important; }

/* Highlighted totals row */
.data-table tr.total-row td {
  background: var(--gold-light) !important;
  font-weight: 700;
  color: var(--navy);
  border-top: 2px solid var(--gold);
}

.td-name      { font-weight: 600; color: var(--navy); }
.td-secondary { color: var(--text-muted); font-size: 0.78rem; }
.td-price     { font-weight: 700; color: var(--navy); }

/* ===========================
   MODALS
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,43,85,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 100%;
  max-width: 530px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: all 0.25s;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
  border-radius: 6px;
}
.modal-close:hover { color: var(--danger); background: var(--danger-light); }
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===========================
   TOASTS
   =========================== */
.toast-container {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 380px;
  border: 1px solid;
  box-shadow: var(--shadow-card);
  animation: slideIn 0.3s ease;
  background: #fff;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.toast-success { border-color: rgba(26,140,91,0.4); color: var(--success); }
.toast-error   { border-color: rgba(192,57,43,0.4); color: var(--danger); }
.toast-info    { border-color: rgba(13,43,85,0.3);  color: var(--navy); }
.toast-icon    { font-size: 1.2rem; flex-shrink: 0; }
.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}

/* ===========================
   SALESPERSON FORM CARDS
   =========================== */
.form-page { max-width: 800px; margin: 0 auto; padding: 32px 24px; }
.form-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.form-card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12), var(--shadow-sm);
}
.form-section-title {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===========================
   PROPERTY CARDS
   =========================== */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.property-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold);
}
.property-card-header {
  padding: 16px 18px;
  background: var(--gold-light);
  border-bottom: 1.5px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.property-card-body   { padding: 18px; }
.property-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
}
.property-title    { font-weight: 700; font-size: 1rem; margin-bottom: 4px; color: var(--navy); }
.property-location { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.property-detail   {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 6px;
}
.property-detail-icon { color: var(--text-muted); width: 16px; }
.property-price { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.property-agent { font-size: 0.75rem; color: var(--text-muted); }

/* ===========================
   EMPTY STATE
   =========================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state-icon  { font-size: 3rem; margin-bottom: 16px; opacity: 0.35; }
.empty-state-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.empty-state-text  { font-size: 0.875rem; }

/* ===========================
   SEARCH & FILTERS
   =========================== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-input-wrapper { position: relative; flex: 1; min-width: 200px; }
.search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}
.search-input-wrapper .form-control { padding-left: 38px; }

/* ===========================
   SECTION HEADERS
   =========================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title    { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.section-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }

/* ===========================
   PAGE TRANSITIONS
   =========================== */
.page-enter { animation: pageEnter 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   SPINNER
   =========================== */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(13,43,85,0.2);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================
   SUBMIT OVERLAY
   =========================== */
.submit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,43,85,0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.submit-overlay.show { opacity: 1; visibility: visible; }
.submit-overlay .spinner {
  width: 50px; height: 50px;
  border-width: 4px;
  border-color: rgba(201,168,76,0.3);
  border-top-color: var(--gold);
}
.submit-overlay p { color: #fff; font-size: 0.95rem; font-weight: 500; }

/* ===========================
   INFO BOX
   =========================== */
.info-box {
  background: var(--navy-light);
  border: 1px solid rgba(13,43,85,0.15);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.info-box .info-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ===========================
   ACCOUNT MANAGEMENT
   =========================== */
.account-row-actions { display: flex; gap: 6px; align-items: center; }
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 4px 7px;
  border-radius: 4px;
  transition: all 0.2s;
}
.copy-btn:hover { color: var(--navy); background: var(--gold-light); }
.password-cell {
  font-family: monospace;
  background: var(--bg-primary);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

/* ===========================
   DETAIL VIEW
   =========================== */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.detail-label {
  font-size: 0.71rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
}
.detail-value { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.photo-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid rgba(201,168,76,0.3);
}
.photo-thumb img, .photo-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================
   AMENITY CHIPS
   =========================== */
.amenities-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 54px;
  transition: border-color 0.2s;
}
.amenities-chips:focus-within { border-color: var(--gold); }
.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  user-select: none;
}
.amenity-chip:hover {
  border-color: var(--gold);
  color: var(--navy);
  background: var(--gold-light);
  transform: translateY(-1px);
}
.amenity-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.amenity-chip.active::before { content: '✓ '; font-weight: 700; }
.amenity-chip.custom-amenity.active {
  background: rgba(26,140,91,0.12);
  border-color: var(--success);
  color: var(--success);
}
.amenity-chip.custom-amenity.active::before { content: '✚ '; }

.amenity-custom-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.amenity-custom-row .form-control { flex: 1; }

.amenities-selected-display {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  min-height: 0;
}
.amenities-count { font-weight: 600; color: var(--success); margin-right: 4px; }
.amenity-tag {
  padding: 2px 10px;
  background: var(--navy-light);
  border: 1px solid rgba(13,43,85,0.18);
  border-radius: 100px;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(13,43,85,0.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(13,43,85,0.3); }

/* ===========================
   SUBMIT OVERLAY (upload progress)
   =========================== */
.submit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 30, 62, 0.72);
  backdrop-filter: blur(6px);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 24px;
}
.submit-overlay.show { display: flex; }
.submit-overlay .spinner {
  width: 52px;
  height: 52px;
  border-width: 4px;
  border-color: rgba(201,168,76,0.25);
  border-top-color: var(--gold);
}

/* ===========================
   LOADING SPINNER KEYFRAME
   =========================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(13,43,85,0.15);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

/* ===========================
   CAMERA CAPTURE BUTTON
   =========================== */
.camera-capture-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.btn-capture {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.18s, transform 0.12s;
  font-family: inherit;
}
.btn-capture:hover  { background: var(--navy-deep); transform: translateY(-1px); }
.btn-capture:active { transform: translateY(0); }
.btn-capture input  { display: none; }

/* ===========================
   INFO BOX
   =========================== */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--navy-light);
  border: 1px solid rgba(13,43,85,0.15);
  border-radius: 10px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.info-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
  .data-table th:nth-child(n+4), .data-table td:nth-child(n+4) { display: none; }
}
@media (max-width: 480px) {
  .stats-grid  { grid-template-columns: 1fr; }
  .login-card  { padding: 26px 20px; }
}
