/* ── Estio Design System ────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

:root {
  --void:        #08080f;
  --surface:     #0e0e1a;
  --glass-bg:    rgba(255,255,255,0.045);
  --glass-hover: rgba(255,255,255,0.072);
  --glass-border:rgba(255,255,255,0.09);
  --accent:      #7c6bff;
  --accent2:     #9b6bff;
  --teal:        #2dd4bf;
  --gold:        #f5c842;
  --warm:        #ff6b6b;
  --txt:         rgba(255,255,255,0.93);
  --txt2:        rgba(255,255,255,0.55);
  --txt3:        rgba(255,255,255,0.28);
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;
  --blur:        24px;
  --shadow:      0 8px 40px rgba(0,0,0,0.45);
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.3);
  --font:        'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--txt);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: rgba(124,107,255,.35); color:#fff; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

/* ── Ambient background ─────────────────────────────────────── */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.orb-purple { background: rgba(124,107,255,.16); }
.orb-teal   { background: rgba(45,212,191,.11); }
.orb-warm   { background: rgba(255,107,107,.10); }

/* ── Glass card ─────────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}
.glass-hover {
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.glass-hover:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 11px 22px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .875rem; font-weight: 500;
  cursor: pointer; border: none; transition: opacity .15s, transform .1s, box-shadow .2s;
  text-decoration: none; white-space: nowrap; outline: none;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff; box-shadow: 0 4px 20px rgba(124,107,255,.35);
}
.btn-primary:hover { opacity: .9; box-shadow: 0 6px 28px rgba(124,107,255,.5); }
.btn-ghost {
  background: transparent; color: var(--txt);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { background: var(--glass-hover); border-color: rgba(255,255,255,.18); }
.btn-teal  { background: linear-gradient(135deg,#0d9488,#2dd4bf); color:#fff; }
.btn-gold  { background: linear-gradient(135deg,#b45309,#f5c842); color:#fff; }
.btn-danger{ background: rgba(255,107,107,.15); color: var(--warm); border: 1px solid rgba(255,107,107,.25); }
.btn-sm { padding: 7px 14px; font-size: .8rem; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Form elements ──────────────────────────────────────────── */
.input {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); border: 1px solid var(--glass-border);
  color: var(--txt); font-family: var(--font); font-size: .875rem;
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--txt3); }
.input:focus {
  border-color: rgba(124,107,255,.6);
  box-shadow: 0 0 0 3px rgba(124,107,255,.12);
  background: rgba(255,255,255,.07);
}
.input-group { position: relative; }
.input-group .input { padding-left: 42px; }
.input-group .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--txt3); pointer-events: none; font-size: 1rem;
}
select.input { appearance: none; }
textarea.input { resize: vertical; min-height: 100px; }
label.lbl { display: block; font-size: .8rem; font-weight: 500; color: var(--txt2); margin-bottom: 6px; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 500;
}
.badge-accent { background: rgba(124,107,255,.18); color: #a89aff; }
.badge-teal   { background: rgba(45,212,191,.15);  color: #2dd4bf; }
.badge-gold   { background: rgba(245,200,66,.15);  color: #f5c842; }
.badge-warm   { background: rgba(255,107,107,.15); color: #ff8080; }
.badge-grey   { background: rgba(255,255,255,.07); color: var(--txt2); }

/* ── Skeleton loader ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,.04) 0%,
    rgba(255,255,255,.09) 50%,
    rgba(255,255,255,.04) 100%);
  background-size: 400px 100%;
  animation: shimmer 1.8s infinite linear;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

/* ── Toast notifications ────────────────────────────────────── */
#toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; min-width: 260px;
  animation: slideIn .3s ease;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid;
}
.toast-success { background: rgba(45,212,191,.15); border-color: rgba(45,212,191,.3); color: #2dd4bf; }
.toast-error   { background: rgba(255,107,107,.15); border-color: rgba(255,107,107,.3); color: #ff8080; }
.toast-info    { background: rgba(124,107,255,.15); border-color: rgba(124,107,255,.3); color: #a89aff; }
@keyframes slideIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }

/* ── Navigation bar ─────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 24px; transition: all .3s;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.navbar.scrolled {
  background: rgba(8,8,15,.7); border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 10px 24px;
}
.nav-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-decoration: none; color: var(--txt); }
.nav-logo span { background: linear-gradient(135deg,var(--accent),var(--accent2)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 8px 14px; border-radius: var(--radius-sm); font-size: .875rem; color: var(--txt2); text-decoration: none; transition: color .15s, background .15s; }
.nav-link:hover, .nav-link.active { color: var(--txt); background: rgba(255,255,255,.06); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── Dashboard layout ───────────────────────────────────────── */
.dash-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,15,.75); border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 0 24px; display: flex; align-items: center; height: 62px; gap: 8px;
}
.dash-logo { font-family:var(--font-display); font-weight:800; font-size:1.2rem; color:var(--txt); text-decoration:none; margin-right:16px; }
.dash-logo span { background:linear-gradient(135deg,var(--accent),var(--accent2)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.dash-link {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: var(--radius-sm); font-size: .85rem; color: var(--txt2);
  text-decoration: none; transition: color .15s, background .15s;
}
.dash-link:hover, .dash-link.active { color: var(--txt); background: rgba(255,255,255,.07); }
.dash-link i { font-size: 1rem; }
.dash-spacer { flex: 1; }
.dash-user { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.dash-avatar {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family:var(--font-display); font-weight:700; font-size:.85rem; color:#fff;
  background: linear-gradient(135deg,var(--accent),var(--accent2));
}
.dash-name { font-size: .85rem; font-weight: 500; }
.dash-role { font-size: .7rem; color: var(--txt2); }
.dash-content { max-width: 1200px; margin: 0 auto; padding: 32px 24px; position: relative; z-index: 1; }

/* ── Page sections ──────────────────────────────────────────── */
.page { position: relative; z-index: 1; }
.section { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.section-sm { padding: 40px 24px; max-width: 1200px; margin: 0 auto; }

/* ── Headings ───────────────────────────────────────────────── */
.h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem,6vw,5rem); line-height: .95; letter-spacing: -.02em; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem,4vw,2.8rem); letter-spacing: -.01em; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.gradient-text { background: linear-gradient(135deg,#fff 30%,rgba(255,255,255,.5)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.accent-text   { background: linear-gradient(135deg,var(--accent),var(--accent2)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }

/* ── Property card ──────────────────────────────────────────── */
.prop-card { border-radius: var(--radius-lg); overflow: hidden; }
.prop-img { position: relative; height: 200px; overflow: hidden; background: linear-gradient(135deg,rgba(124,107,255,.1),rgba(45,212,191,.06)); }
.prop-img img { width:100%; height:100%; object-fit:cover; transition: transform .5s; }
.prop-card:hover .prop-img img { transform: scale(1.06); }
.prop-img-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:3rem; }
.prop-badges { position:absolute; top:12px; left:12px; display:flex; gap:6px; }
.prop-save { position:absolute; top:12px; right:12px; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.5); backdrop-filter:blur(8px); border:none; cursor:pointer; transition:transform .2s; }
.prop-save:hover { transform:scale(1.1); }
.prop-body { padding: 18px; }
.prop-title { font-family:var(--font-display); font-weight:600; font-size:1rem; margin-bottom:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.prop-loc { font-size:.8rem; color:var(--txt2); margin-bottom:10px; display:flex; align-items:center; gap:4px; }
.prop-specs { display:flex; gap:12px; margin-bottom:12px; }
.prop-spec { font-size:.78rem; color:var(--txt2); display:flex; align-items:center; gap:4px; }
.prop-price { font-size:1rem; font-weight:600; color:var(--accent); font-family:var(--font-mono); }
.prop-price span { font-size:.78rem; color:var(--txt3); font-family:var(--font); }

/* ── Grid ───────────────────────────────────────────────────── */
.grid-3 { display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:20px; }
.grid-2 { display:grid; grid-template-columns:repeat(auto-fill,minmax(360px,1fr)); gap:20px; }
.grid-4 { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }

/* ── Stat card ──────────────────────────────────────────────── */
.stat-card { border-radius: var(--radius); padding: 24px; }
.stat-icon { width:40px; height:40px; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; font-size:1.1rem; margin-bottom:14px; }
.stat-value { font-family:var(--font-display); font-weight:700; font-size:1.8rem; margin-bottom:2px; }
.stat-label { font-size:.82rem; color:var(--txt2); }

/* ── Table ──────────────────────────────────────────────────── */
.table-wrap { border-radius:var(--radius); overflow:hidden; }
.table { width:100%; border-collapse:collapse; font-size:.875rem; }
.table th { padding:12px 16px; text-align:left; font-size:.75rem; font-weight:500; color:var(--txt2); border-bottom:1px solid var(--glass-border); background:rgba(255,255,255,.02); }
.table td { padding:13px 16px; border-bottom:1px solid rgba(255,255,255,.04); }
.table tr:last-child td { border-bottom:none; }
.table tr:hover td { background:rgba(255,255,255,.02); }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-bg { position:fixed; inset:0; background:rgba(0,0,0,.7); backdrop-filter:blur(6px); z-index:200; display:flex; align-items:center; justify-content:center; padding:20px; }
.modal-bg.hidden { display:none; }
.modal { border-radius:var(--radius-lg); padding:32px; width:100%; max-width:520px; max-height:90vh; overflow-y:auto; animation:scaleIn .25s cubic-bezier(.34,1.56,.64,1); }
@keyframes scaleIn { from{opacity:0;transform:scale(.92)} to{opacity:1;transform:none} }
.modal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.modal-close { background:none; border:none; color:var(--txt2); font-size:1.4rem; cursor:pointer; padding:4px; line-height:1; }
.modal-close:hover { color:var(--txt); }

/* ── Tabs ───────────────────────────────────────────────────── */
.tab-row { display:flex; gap:4px; padding:4px; border-radius:var(--radius-sm); margin-bottom:20px; background:rgba(255,255,255,.04); border:1px solid var(--glass-border); width:fit-content; }
.tab-btn { padding:8px 18px; border-radius:8px; font-size:.85rem; font-weight:500; cursor:pointer; border:none; background:transparent; color:var(--txt2); transition:all .2s; }
.tab-btn.active { background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; box-shadow:0 2px 12px rgba(124,107,255,.35); }

/* ── Empty state ────────────────────────────────────────────── */
.empty { text-align:center; padding:60px 20px; color:var(--txt2); }
.empty i { font-size:2.5rem; opacity:.3; margin-bottom:14px; display:block; }
.empty h3 { font-size:1.1rem; font-weight:600; color:var(--txt3); margin-bottom:6px; }
.empty p  { font-size:.85rem; }

/* ── Upload zone ────────────────────────────────────────────── */
.upload-zone { border:2px dashed var(--glass-border); border-radius:var(--radius); padding:32px; text-align:center; cursor:pointer; transition:border-color .2s, background .2s; }
.upload-zone:hover, .upload-zone.drag { border-color:var(--accent); background:rgba(124,107,255,.06); }
.upload-zone input { display:none; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert { padding:12px 16px; border-radius:var(--radius-sm); font-size:.875rem; margin-bottom:16px; border:1px solid; display:flex; align-items:flex-start; gap:8px; }
.alert-err  { background:rgba(255,107,107,.12); border-color:rgba(255,107,107,.25); color:#ff8080; }
.alert-ok   { background:rgba(45,212,191,.12);  border-color:rgba(45,212,191,.25);  color:#2dd4bf; }
.alert-info { background:rgba(124,107,255,.12); border-color:rgba(124,107,255,.25); color:#a89aff; }

/* ── Misc ───────────────────────────────────────────────────── */
.divider { border:none; border-top:1px solid var(--glass-border); margin:24px 0; }
.text-muted { color:var(--txt2); }
.text-sm { font-size:.85rem; }
.text-xs { font-size:.78rem; }
.text-accent { color:var(--accent); }
.text-teal   { color:var(--teal); }
.text-gold   { color:var(--gold); }
.text-warm   { color:var(--warm); }
.mt-1{margin-top:6px} .mt-2{margin-top:12px} .mt-3{margin-top:20px} .mt-4{margin-top:32px}
.mb-1{margin-bottom:6px} .mb-2{margin-bottom:12px} .mb-3{margin-bottom:20px} .mb-4{margin-bottom:32px}
.flex{display:flex} .items-center{align-items:center} .justify-between{justify-content:space-between} .gap-2{gap:8px} .gap-3{gap:14px} .flex-1{flex:1}
.hidden { display:none !important; }
.spin { display:inline-block; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ── Responsive ─────────────────────────────────────────────── */
@media(max-width:768px) {
  .nav-links { display:none; }
  .section { padding:60px 16px; }
  .dash-content { padding:20px 16px; }
  .dash-name, .dash-role { display:none; }
  .grid-3,.grid-2 { grid-template-columns:1fr; }
  .modal { padding:24px; }
  .h1 { font-size:2.4rem; }

  /* Top dashboard nav: let links scroll horizontally instead of overflowing.
     Keeps the logo + sign-out visible; nav links swipe sideways. */
  .dash-nav {
    padding: 0 12px;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;            /* Firefox */
  }
  .dash-nav::-webkit-scrollbar { display: none; }   /* WebKit */
  .dash-link {
    flex: 0 0 auto;                   /* don't shrink; scroll instead */
    padding: 8px 10px;
    font-size: .8rem;
  }
  .dash-link span { display: inline; }
  .dash-logo { margin-right: 8px; flex: 0 0 auto; }
  .dash-spacer { flex: 0 0 8px; }     /* small fixed gap, not a stretch */
}
/* ── Sidebar & Layout (new) ───────────────────────────────── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--void);
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  background: rgba(8,8,15,.85);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  z-index: 200;
  transition: width 0.2s ease;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.sidebar.collapsed { width: 70px; }
.sidebar.hidden { width: 0; border: none; }
.sidebar-header {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
}
.sidebar-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.sidebar-logo span { background: linear-gradient(135deg,var(--accent),var(--accent2)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.sidebar-toggle { background: none; border: none; color: var(--txt2); cursor: pointer; font-size: 1.2rem; padding: 4px; }
.sidebar-nav { flex: 1; padding: 16px 0; }
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--txt2);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.sidebar-nav-item i { width: 24px; text-align: center; font-size: 1.1rem; }
.sidebar-nav-item span { opacity: 1; transition: opacity 0.2s; }
.sidebar.collapsed .sidebar-nav-item span { opacity: 0; width: 0; display: none; }
.sidebar-nav-item:hover, .sidebar-nav-item.active { background: var(--glass-hover); color: var(--txt); }
.sidebar-footer { padding: 16px; border-top: 1px solid var(--glass-border); }
.main-content {
  flex: 1;
  margin-left: 260px;
  transition: margin-left 0.2s;
}
.sidebar.collapsed ~ .main-content { margin-left: 70px; }
.sidebar.hidden ~ .main-content { margin-left: 0; }
.hamburger {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 260;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  /* Glassmorphic floating button */
  background: rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--txt);
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, transform .15s;
}
.hamburger:active { transform: scale(0.94); }
.hamburger.is-active { background: rgba(255,255,255,0.16); }
.hamburger.is-active i::before { content: "\f00d"; }   /* fa-times (X) when open */

/* Backdrop behind the mobile drawer (created by JS) */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 199;
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }

@media (max-width: 768px) {
  /* Sidebar becomes an off-canvas drawer, hidden by default. */
  .sidebar {
    transform: translateX(-100%);
    width: min(82vw, 300px);
    transition: transform .25s ease;
    position: fixed;
    box-shadow: 0 0 40px rgba(0,0,0,.4);
  }
  /* Never apply the desktop icon-rail collapse on mobile. */
  .sidebar.collapsed { width: min(82vw, 300px); }
  .sidebar.collapsed .sidebar-nav-item span { opacity: 1; width: auto; display: inline; }
  .sidebar.mobile-open { transform: translateX(0); }

  /* Content takes the full width; leave room for the floating button. */
  .main-content { margin-left: 0 !important; }
  .main-content > div { padding-top: 72px; }
  .sidebar.collapsed ~ .main-content,
  .sidebar.hidden ~ .main-content { margin-left: 0; }

  .hamburger { display: inline-flex; }
}

/* ── Chat & Notifications ─────────────────────────────────── */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  z-index: 300;
  display: none;
  flex-direction: column;
  max-height: 450px;
}
.chat-widget.open { display: flex; }
.chat-header {
  padding: 12px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-messages { flex: 1; overflow-y: auto; padding: 12px; gap: 8px; display: flex; flex-direction: column; }
.chat-message { padding: 8px; border-radius: var(--radius-sm); max-width: 85%; }
.chat-message.sent { background: var(--accent); color: white; align-self: flex-end; }
.chat-message.received { background: var(--glass-bg); align-self: flex-start; }
.chat-input-area { display: flex; padding: 8px; gap: 8px; border-top: 1px solid var(--glass-border); }
.notification-bell { position: relative; cursor: pointer; }
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--warm);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notification-panel {
  position: absolute;
  top: 50px;
  right: 20px;
  width: 320px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  z-index: 250;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}
.notification-panel.open { display: block; }
.notification-item { padding: 12px; border-bottom: 1px solid var(--glass-border); cursor: pointer; }
.notification-item.unread { background: rgba(124,107,255,.1); }

/* ── Dark / Light Theme ───────────────────────────────────── */
body.light-theme {
  --void:        #eef0f6;
  --surface:     #ffffff;
  --glass-bg:    rgba(255,255,255,0.72);
  --glass-hover: rgba(124,107,255,0.08);
  --glass-border:rgba(20,22,40,0.12);
  --txt:         #14162a;          /* near-black headings */
  --txt2:        #444a63;          /* readable secondary  */
  --txt3:        #6b7186;          /* muted but visible   */
  --shadow:      0 8px 40px rgba(40,44,80,0.14);
  --shadow-sm:   0 2px 12px rgba(40,44,80,0.10);
}
body.light-theme { background: var(--void); }
body.light-theme .glass { background: rgba(255,255,255,0.78); border-color: var(--glass-border); }
body.light-theme .glass-hover:hover { background: #fff; border-color: rgba(124,107,255,.4); }

/* Ambient orbs are softer on light */
body.light-theme .orb-purple { background: rgba(124,107,255,.18); }
body.light-theme .orb-teal   { background: rgba(45,212,191,.16); }
body.light-theme .orb-warm   { background: rgba(255,107,107,.12); }

/* Sidebar / top nav must flip to a light surface so dark text is legible.
   (Previously the sidebar kept a near-black background while text used the
   light-theme dark colour — making the menu items invisible.) */
body.light-theme .sidebar,
body.light-theme .notification-panel,
body.light-theme .chat-widget,
body.light-theme .pwa-banner,
body.light-theme .toast { background: rgba(255,255,255,0.92); }
body.light-theme .dash-nav,
body.light-theme .navbar.scrolled { background: rgba(255,255,255,0.82); border-color: var(--glass-border); }
body.light-theme .toast { color: var(--txt); border-color: var(--glass-border); }
body.light-theme .sidebar-nav-item { color: var(--txt2); }
body.light-theme .sidebar-nav-item:hover,
body.light-theme .sidebar-nav-item.active { background: rgba(124,107,255,.12); color: var(--accent); }
body.light-theme .sidebar-nav-item.active i { color: var(--accent); }
body.light-theme .dash-link { color: var(--txt2); }
body.light-theme .dash-link:hover, body.light-theme .dash-link.active { color: var(--txt); background: rgba(124,107,255,.10); }
body.light-theme .nav-link { color: var(--txt2); }
body.light-theme .nav-link:hover, body.light-theme .nav-link.active { color: var(--txt); background: rgba(124,107,255,.10); }
body.light-theme .sidebar.collapsed .sidebar-nav-item::after { background: #fff; color: var(--txt); }

/* Inputs / buttons / tables / badges legibility on light */
body.light-theme .input { background: #fff; border-color: var(--glass-border); color: var(--txt); }
body.light-theme .input::placeholder { color: var(--txt3); }
body.light-theme .btn-ghost { color: var(--txt); border-color: var(--glass-border); }
body.light-theme .btn-ghost:hover { background: rgba(124,107,255,.08); }
body.light-theme .table th { background: rgba(20,22,40,.03); color: var(--txt2); }
body.light-theme .table td { border-color: rgba(20,22,40,.06); }
body.light-theme .table tr:hover td { background: rgba(124,107,255,.04); }
body.light-theme .badge-grey { background: rgba(20,22,40,.06); color: var(--txt2); }
body.light-theme .gradient-text { background: linear-gradient(135deg,#14162a 30%,rgba(20,22,42,.55)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
body.light-theme .filter-bar { background: rgba(255,255,255,.7); border: 1px solid var(--glass-border); }
body.light-theme .stat-box { background: rgba(255,255,255,.7); }
body.light-theme ::-webkit-scrollbar-thumb { background: rgba(20,22,40,.18); }
body.light-theme .site-footer { background: rgba(255,255,255,.5); }
body.light-theme .amenity-item,
body.light-theme .upgrade-card { color: var(--txt2); }
body.light-theme .modal { background: #fff; }
/* Sidebar footer & collapsed state fixes */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}
.sidebar.collapsed .sidebar-footer .dash-user div:not(.dash-avatar) {
  display: none;
}
.sidebar.collapsed .sidebar-footer .btn span {
  display: none;
}
.sidebar.collapsed .sidebar-footer .btn i {
  margin: 0 auto;
}
.sidebar-footer .btn {
  justify-content: center;
}

/* Ensure main content shifts when sidebar collapses */
.sidebar.collapsed ~ .main-content {
  margin-left: 70px;
}
@media (max-width: 768px) {
  .sidebar.collapsed ~ .main-content {
    margin-left: 0;
  }
}

/* Chat widget improvements */
.chat-widget {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
/* ── Mobile polish: glassmorphism retention & overflow safety ──── */
/* Prevent any horizontal scroll/scaling overflow on small screens. */
html, body { max-width: 100%; overflow-x: hidden; }

/* Keep frosted boxes inside their boundaries and let long content wrap. */
.glass, .stat-card, .prop-card, .modal {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 768px) {
  /* Re-affirm the frosted look at mobile sizes (brief: must not lose polish). */
  .glass {
    background: rgba(255,255,255,0.07);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius);
  }
  /* Multi-column dashboard grids collapse to a single column. */
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr !important; }
  /* Inline 2-col form grids stack so inputs never overflow the card. */
  .modal [style*="grid-template-columns:1fr 1fr"],
  .modal [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  /* Wide tables scroll within their frosted container instead of stretching it. */
  .table-wrap, .perf-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Tighten default page padding on phones. */
  .main-content > div { padding-left: 16px; padding-right: 16px; }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  .sidebar, .main-content, .sidebar-overlay, .hamburger { transition: none; }
}

/* ════════════════════════════════════════════════════════════════
   UPDATE 004 — Footer, PWA, loaders, pricing, contact, polish
   ════════════════════════════════════════════════════════════════ */

/* ── Toast polish (frosted) ─────────────────────────────────── */
#toast-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px; font-size: .88rem; font-weight: 500;
  background: rgba(18,18,30,.82); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1); max-width: 92vw;
  transition: opacity .3s, transform .3s;
}
.toast i { font-size: 1rem; }
.toast-success i { color: var(--teal); }
.toast-error i { color: var(--warm); }
.toast-info i { color: var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ── Full-page loader ───────────────────────────────────────── */
.page-loader {
  position: fixed; inset: 0; z-index: 9998;
  display: none; align-items: center; justify-content: center;
  background: rgba(8,8,15,.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.page-loader.show { display: flex; }
.page-loader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.page-loader-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--txt); letter-spacing: -.02em; }
.page-loader-logo span { background: linear-gradient(135deg,var(--accent),var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.12);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.spinner-sm { width: 18px; height: 18px; border-width: 2px; display: inline-block; vertical-align: middle; }

/* ── Sidebar toggle rotation + collapsed tooltips ───────────── */
.sidebar-toggle i { transition: transform .25s ease; }
.sidebar.collapsed .sidebar-toggle i { transform: rotate(180deg); }
.sidebar.collapsed .sidebar-logo span { display: none; }
.sidebar.collapsed .sidebar-nav-item { position: relative; justify-content: center; }
.sidebar.collapsed .sidebar-nav-item::after {
  content: attr(data-label);
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--surface); color: var(--txt); padding: 6px 10px; border-radius: 8px;
  font-size: .78rem; white-space: nowrap; border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 300;
}
.sidebar.collapsed .sidebar-nav-item:hover::after { opacity: 1; }

/* ── Rich footer ────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--glass-border); margin-top: 40px; position: relative; z-index: 1; background: rgba(8,8,15,.4); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--txt2); margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; color: var(--txt2); text-decoration: none; font-size: .9rem; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--txt); }
.footer-brand .nav-logo { font-size: 1.4rem; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--txt2); font-size: 1rem; }
.footer-social a:hover { color: var(--txt); border-color: var(--accent); background: rgba(124,107,255,.12); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 24px 32px; border-top: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; padding: 40px 20px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── PWA install banner ─────────────────────────────────────── */
.pwa-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%);
  z-index: 9000; width: min(440px, calc(100vw - 28px));
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: rgba(18,18,30,.9); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.5); transition: transform .4s cubic-bezier(.34,1.4,.5,1);
}
.pwa-banner.show { transform: translate(-50%, 0); }
.pwa-banner-icon img { width: 46px; height: 46px; border-radius: 12px; display: block; }
.pwa-banner-text { flex: 1; min-width: 0; }
.pwa-banner-text strong { display: block; font-size: .95rem; }
.pwa-banner-text span { display: block; font-size: .78rem; color: var(--txt2); }
.pwa-ios-hint { font-size: .78rem; color: var(--txt2); max-width: 150px; }
.pwa-ios-hint i { color: var(--accent); }
.pwa-banner-actions { display: flex; align-items: center; gap: 8px; }
.pwa-banner-close { background: none; border: none; color: var(--txt3); cursor: pointer; font-size: 1rem; padding: 6px; line-height: 1; }
.pwa-banner-close:hover { color: var(--txt); }
/* In standalone, push content below the status bar / notch. */
.pwa-standalone body, html.pwa-standalone body { padding-top: env(safe-area-inset-top); }
.pwa-standalone .navbar { padding-top: calc(14px + env(safe-area-inset-top)); }

/* ── Public page hero/section helpers ───────────────────────── */
.page-hero { max-width: 900px; margin: 0 auto; text-align: center; padding: 120px 24px 40px; position: relative; z-index: 1; }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: .78rem; font-weight: 600; border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--txt2); margin-bottom: 20px; }
.legal { max-width: 820px; margin: 0 auto; padding: 24px 24px 80px; position: relative; z-index: 1; line-height: 1.75; }
.legal .glass { padding: 40px; border-radius: var(--radius-lg); }
.legal h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 28px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--txt2); font-size: .94rem; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--accent); text-decoration: none; }

/* ── Pricing comparison ─────────────────────────────────────── */
.plan-toggle { display: flex; justify-content: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--glass-bg); border: 1px solid var(--glass-border); width: fit-content; margin: 0 auto 36px; }
.plan-toggle button { padding: 8px 22px; border-radius: 9px; border: none; background: transparent; color: var(--txt2); font-weight: 600; font-size: .85rem; cursor: pointer; transition: all .2s; }
.plan-toggle button.active { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #fff; box-shadow: 0 2px 12px rgba(124,107,255,.35); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; align-items: stretch; }
.pcard { border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; position: relative; }
.pcard.popular { border: 1px solid rgba(124,107,255,.45); box-shadow: 0 20px 60px rgba(124,107,255,.18); }
.pcard .ribbon { position: absolute; top: 16px; right: 16px; padding: 4px 12px; border-radius: 99px; font-size: .7rem; font-weight: 700; background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #fff; }
.pcard h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 6px; }
.pcard .pdesc { font-size: .85rem; color: var(--txt2); min-height: 38px; margin-bottom: 16px; }
.pcard .pprice { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.pcard .pprice .amt { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; }
.pcard .pprice .per { color: var(--txt2); font-size: .85rem; }
.pcard ul { list-style: none; margin: 22px 0; flex: 1; }
.pcard ul li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: .88rem; color: var(--txt2); }
.pcard ul li i { color: var(--teal); margin-top: 3px; font-size: .82rem; }
.pcard ul li.off { color: var(--txt3); }
.pcard ul li.off i { color: var(--txt3); }

/* ── Contact layout ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; max-width: 1080px; margin: 0 auto; padding: 24px 24px 80px; position: relative; z-index: 1; align-items: start; }
.contact-method { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--glass-border); }
.contact-method:last-child { border-bottom: none; }
.contact-method .ci { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(124,107,255,.14); color: var(--accent); font-size: 1.1rem; }
.contact-method h4 { font-size: .95rem; margin-bottom: 2px; }
.contact-method p, .contact-method a { font-size: .85rem; color: var(--txt2); text-decoration: none; }
.contact-method a:hover { color: var(--accent); }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Labels & misc form polish ──────────────────────────────── */
.lbl { display: block; font-size: .8rem; font-weight: 500; color: var(--txt2); margin-bottom: 6px; }
textarea.input { resize: vertical; min-height: 90px; font-family: inherit; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--txt3); font-size: .78rem; margin: 18px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); }

/* ── Plan badge in tenant/landlord header ───────────────────── */
.plan-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: .76rem; font-weight: 600; border: 1px solid var(--glass-border); background: var(--glass-bg); }
.plan-chip.free { color: var(--txt2); }
.plan-chip.plus { color: var(--gold); border-color: rgba(245,200,66,.35); background: rgba(245,200,66,.1); }
.upgrade-card { border-radius: var(--radius-lg); padding: 28px; background: linear-gradient(135deg, rgba(124,107,255,.14), rgba(45,212,191,.08)); border: 1px solid rgba(124,107,255,.25); }

/* ════════════════════════════════════════════════════════════════
   UPDATE 005 — Popups, notifications, chat, cards, plan, settings,
   onboarding, contact-lock, big-screen + loaders
   ════════════════════════════════════════════════════════════════ */

/* ── Dialog / popup system (replaces native alert/confirm/prompt) ─ */
.dialog-bg {
  position: fixed; inset: 0; z-index: 4000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(6,6,14,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .2s ease;
}
.dialog-bg.show { opacity: 1; }
.dialog {
  width: 100%; max-width: 440px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(0,0,0,.5); padding: 28px;
  transform: translateY(14px) scale(.97); transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.dialog-bg.show .dialog { transform: none; }
.dialog-icon {
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; font-size: 1.45rem; margin-bottom: 16px;
}
.dialog-icon.info    { background: rgba(124,107,255,.16); color: var(--accent); }
.dialog-icon.success { background: rgba(45,212,191,.16);  color: var(--teal); }
.dialog-icon.warn    { background: rgba(245,200,66,.16);  color: var(--gold); }
.dialog-icon.danger  { background: rgba(255,107,107,.16); color: var(--warm); }
.dialog h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }
.dialog p  { color: var(--txt2); font-size: .92rem; line-height: 1.6; margin-bottom: 18px; white-space: pre-wrap; }
.dialog .input { margin-bottom: 18px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.dialog-actions .btn { min-width: 96px; }

/* ── Animated landing stats (no box / transparent) ──────────── */
.stats-row.flat { gap: 8px 24px; }
.stat-box.flat {
  background: none !important; backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 14px 12px; border-radius: 0;
}
.stat-box .n { transition: opacity .4s ease; }
.stat-box .l { font-size: .82rem; color: var(--txt2); letter-spacing: .01em; }
.count-pop { display: inline-block; animation: countPop .5s ease; }
@keyframes countPop { 0% { transform: scale(.9); opacity:.4 } 60% { transform: scale(1.04) } 100% { transform: scale(1); opacity:1 } }

/* ── Notification dropdown (rich) ───────────────────────────── */
.notification-panel { width: 360px; max-width: calc(100vw - 32px); padding: 0; box-shadow: var(--shadow); }
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--glass-border); position: sticky; top: 0;
  background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 1;
}
.notif-head strong { font-size: .95rem; }
.notif-head .notif-clear { background: none; border: none; color: var(--accent); font-size: .8rem; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.notif-head .notif-clear:hover { background: rgba(124,107,255,.1); }
.notification-item { display: flex; gap: 10px; align-items: flex-start; transition: background .15s; }
.notification-item:hover { background: var(--glass-hover); }
.notif-ico { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(124,107,255,.14); color: var(--accent); font-size: .85rem; }
.notif-body { flex: 1; min-width: 0; }
.notif-body .nt { font-size: .86rem; font-weight: 600; margin-bottom: 2px; }
.notif-body .nb { font-size: .8rem; color: var(--txt2); line-height: 1.45; }
.notif-time { font-size: .7rem; color: var(--txt3); margin-top: 4px; display: block; }
.notif-empty { padding: 40px 20px; text-align: center; color: var(--txt3); }
.notif-empty i { font-size: 1.8rem; opacity: .4; display: block; margin-bottom: 10px; }
.notif-foot { padding: 8px; border-top: 1px solid var(--glass-border); text-align: center; }
.notif-foot small { color: var(--txt3); font-size: .7rem; }

/* ── Chat widget — properly aligned ─────────────────────────── */
.chat-widget { width: 340px; max-width: calc(100vw - 24px); height: 460px; max-height: calc(100vh - 110px); box-shadow: var(--shadow); overflow: hidden; }
.chat-header { gap: 10px; }
.chat-peer { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-peer .dash-avatar { width: 32px; height: 32px; font-size: .75rem; flex-shrink: 0; }
.chat-peer-info { min-width: 0; }
.chat-peer-info .cpn { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-peer-info .cps { font-size: .7rem; color: var(--txt2); }
.chat-header .chat-x { background: none; border: none; color: var(--txt2); font-size: 1.05rem; cursor: pointer; padding: 6px; line-height: 1; }
.chat-header .chat-x:hover { color: var(--txt); }
.chat-messages { gap: 4px; scroll-behavior: smooth; }
.chat-row { display: flex; flex-direction: column; max-width: 82%; }
.chat-row.me { align-self: flex-end; align-items: flex-end; }
.chat-row.them { align-self: flex-start; align-items: flex-start; }
.chat-bubble { padding: 9px 13px; border-radius: 16px; font-size: .85rem; line-height: 1.45; word-break: break-word; }
.chat-row.me .chat-bubble { background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #fff; border-bottom-right-radius: 5px; }
.chat-row.them .chat-bubble { background: var(--glass-hover); color: var(--txt); border-bottom-left-radius: 5px; border: 1px solid var(--glass-border); }
.chat-meta { font-size: .64rem; color: var(--txt3); margin: 2px 4px 0; }
.chat-empty { margin: auto; text-align: center; color: var(--txt3); padding: 20px; font-size: .85rem; }
.chat-empty i { font-size: 1.6rem; display: block; margin-bottom: 8px; opacity: .5; }
.chat-input-area .input { border-radius: 99px; }
.chat-input-area .btn { border-radius: 99px; width: 38px; height: 38px; padding: 0; flex-shrink: 0; }
.chat-launcher { position: fixed; bottom: 20px; right: 20px; z-index: 350; }
.chat-launcher-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--warm); color: #fff; font-size: .68rem; font-weight: 700; display: none; align-items: center; justify-content: center; }

/* ── Tenant bookings cards ──────────────────────────────────── */
.booking-card { border-radius: var(--radius); padding: 0; overflow: hidden; margin-bottom: 14px; display: flex; }
.booking-rail { width: 6px; flex-shrink: 0; }
.booking-rail.pending   { background: var(--gold); }
.booking-rail.confirmed { background: var(--teal); }
.booking-rail.completed { background: var(--accent); }
.booking-rail.cancelled { background: var(--warm); }
.booking-main { flex: 1; padding: 18px 20px; min-width: 0; }
.booking-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.booking-title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.booking-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.booking-meta .bm { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--txt2); }
.booking-meta .bm i { color: var(--accent); }
.booking-note { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--glass-bg); border: 1px solid var(--glass-border); font-size: .82rem; color: var(--txt2); }
.booking-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Landlord viewing-request cards ─────────────────────────── */
.request-card { border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.request-head { display: flex; align-items: center; gap: 14px; }
.request-avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: linear-gradient(135deg,var(--accent),var(--accent2)); }
.request-head-info { flex: 1; min-width: 0; }
.request-name { font-weight: 600; font-size: .96rem; }
.request-prop { font-size: .82rem; color: var(--txt2); margin-top: 2px; }
.request-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 10px; margin: 14px 0; }
.request-grid .rg { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--txt2); padding: 8px 10px; border-radius: var(--radius-sm); background: var(--glass-bg); border: 1px solid var(--glass-border); }
.request-grid .rg i { color: var(--accent); width: 16px; text-align: center; }
.request-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── My Plan ────────────────────────────────────────────────── */
.plan-hero { border-radius: var(--radius-lg); padding: 28px; background: linear-gradient(135deg,rgba(124,107,255,.16),rgba(45,212,191,.08)); border: 1px solid rgba(124,107,255,.25); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.plan-hero-left { min-width: 220px; }
.plan-tier { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.02em; }
.plan-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.plan-hero-stats .phs .v { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.plan-hero-stats .phs .k { font-size: .76rem; color: var(--txt2); }
.pricing-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; }
.price-card { border-radius: var(--radius-lg); padding: 28px; position: relative; display: flex; flex-direction: column; }
.price-card.featured { border: 1px solid rgba(124,107,255,.45); box-shadow: 0 20px 60px rgba(124,107,255,.16); }
.price-card.current { outline: 2px solid var(--teal); }
.price-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }
.price-card .price-amount { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; margin-bottom: 4px; }
.price-card .price-amount span { font-size: .82rem; color: var(--txt2); font-weight: 500; }
.price-card ul { list-style: none; margin: 16px 0 20px; flex: 1; }
.price-card ul li { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; font-size: .86rem; color: var(--txt2); }
.price-card ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--teal); font-size: .76rem; margin-top: 2px; }
.price-card .price-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); padding: 4px 16px; border-radius: 0 0 10px 10px; font-size: .72rem; font-weight: 700; background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #fff; }

/* ── Settings ───────────────────────────────────────────────── */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 18px; align-items: start; }
.settings-card { border-radius: var(--radius-lg); padding: 24px; }
.settings-card > h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.settings-card > .sc-sub { font-size: .82rem; color: var(--txt2); margin-bottom: 18px; }
.toggle-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--glass-border); }
.toggle-line:last-of-type { border-bottom: none; }
.toggle-line .tl-text strong { font-size: .88rem; font-weight: 600; display: block; }
.toggle-line .tl-text span { font-size: .76rem; color: var(--txt2); }
.switch { position: relative; width: 44px; height: 25px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; border-radius: 99px; background: var(--glass-hover); border: 1px solid var(--glass-border); transition: .2s; cursor: pointer; }
.switch .slider::before { content: ''; position: absolute; height: 19px; width: 19px; left: 2px; top: 2px; border-radius: 50%; background: var(--txt2); transition: .2s; }
.switch input:checked + .slider { background: linear-gradient(135deg,var(--accent),var(--accent2)); border-color: transparent; }
.switch input:checked + .slider::before { transform: translateX(19px); background: #fff; }

/* Past chats list inside settings */
.thread-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); cursor: pointer; transition: background .15s; }
.thread-item:hover { background: var(--glass-hover); }
.thread-item .ti-info { flex: 1; min-width: 0; }
.thread-item .ti-name { font-size: .9rem; font-weight: 600; }
.thread-item .ti-last { font-size: .78rem; color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-item .ti-unread { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── Tenant detail rows (landlord viewing tenant) ───────────── */
.detail-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--glass-border); font-size: .88rem; }
.detail-row:last-child { border-bottom: none; }
.detail-row .dk { width: 140px; flex-shrink: 0; color: var(--txt2); }
.detail-row .dv { color: var(--txt); font-weight: 500; }

/* ── Contact lock (free tier "open an account") ─────────────── */
.contact-locked { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(245,200,66,.08); border: 1px solid rgba(245,200,66,.22); }
.contact-locked .cl-eye { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(245,200,66,.18); color: var(--gold); }
.contact-locked .cl-text { font-size: .82rem; color: var(--txt2); line-height: 1.5; }
.contact-locked .cl-text a { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-locked .cl-text a:hover { text-decoration: underline; }

/* ── Generic image placeholder ──────────────────────────────── */
.img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--txt3); background: linear-gradient(135deg,rgba(124,107,255,.12),rgba(45,212,191,.07)); }
.img-ph i { font-size: 2.2rem; opacity: .6; }

/* ── Inline mini-loader / dots ──────────────────────────────── */
.loading-dots { display: inline-flex; gap: 4px; align-items: center; }
.loading-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: ld 1s infinite ease-in-out; }
.loading-dots span:nth-child(2) { animation-delay: .15s; }
.loading-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes ld { 0%,80%,100% { transform: scale(.5); opacity:.4 } 40% { transform: scale(1); opacity:1 } }
.center-load { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 50px 20px; color: var(--txt2); }

/* ── Receipt (printable / PDF) ──────────────────────────────── */
.receipt { max-width: 560px; margin: 0 auto; background: #fff; color: #14162a; border-radius: 12px; overflow: hidden; }
.receipt-head { padding: 26px 30px; background: linear-gradient(135deg,#7c6bff,#9b6bff); color: #fff; }
.receipt-body { padding: 26px 30px; }
.receipt-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eef0f6; font-size: .9rem; }
.receipt-total { font-size: 1.4rem; font-weight: 800; }

/* ════════════════════════════════════════════════════════════════
   Responsive — phones, tablets, and large screens / TVs
   ════════════════════════════════════════════════════════════════ */
/* Large desktops & TVs: widen the content + scale type up a touch. */
@media (min-width: 1600px) {
  .dash-content, .section, .section-sm, .footer-inner, .footer-bottom { max-width: 1480px; }
  .main-content > div { max-width: 1560px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 2200px) {
  html { font-size: 19px; }
  .dash-content, .section, .section-sm { max-width: 1760px; }
  .main-content > div { max-width: 1840px; }
}
/* Tablets: 2-col grids instead of many tiny columns. */
@media (min-width: 769px) and (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .settings-grid { grid-template-columns: 1fr; }
}
/* Phones: stack the heavier new components cleanly. */
@media (max-width: 768px) {
  .plan-hero { flex-direction: column; align-items: flex-start; }
  .booking-top { flex-direction: column; }
  .request-grid { grid-template-columns: 1fr; }
  .detail-row { flex-direction: column; gap: 2px; }
  .detail-row .dk { width: auto; }
  .dialog { padding: 22px; }
  .notification-panel { right: 8px; left: 8px; width: auto; }
}

/* ── Sidebar nav count pill (admin) ───────────────────────────── */
.nav-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 6px; margin-left: auto;
  font-size: .68rem; font-weight: 700; line-height: 1;
  color: #fff; background: var(--accent); border-radius: 99px;
}
.sidebar-nav-item { position: relative; }
.sidebar.collapsed .nav-pill {
  position: absolute; top: 6px; right: 6px; margin: 0;
  min-width: 15px; height: 15px; font-size: .6rem;
}

/* ════════════════════════════════════════════════════════════
   UPDATE 006 — chat polish, tooltips, page & element animations
   ════════════════════════════════════════════════════════════ */

/* ── Chat: clear-chat footer + launcher hide ── */
.chat-foot { display:flex; justify-content:center; padding:6px 8px 9px; border-top:1px solid var(--glass-border); }
.chat-clear-link { background:none; border:none; color:var(--txt2); font-size:.72rem; cursor:pointer; padding:3px 8px; border-radius:8px; transition:color .15s ease, background .15s ease; }
.chat-clear-link:hover { color:var(--warm,#ff7a59); background:color-mix(in srgb, var(--warm,#ff7a59) 10%, transparent); }
.chat-launcher.hidden { display:none !important; }
.chat-empty i.fa-broom { animation:none; }

/* ── Hover tooltip system (data-tip="...") — important features only ── */
[data-tip]{ position:relative; }
[data-tip]::after{
  content:attr(data-tip);
  position:absolute; left:50%; bottom:calc(100% + 9px); transform:translateX(-50%) translateY(4px);
  background:#14162a; color:#fff; font-size:.72rem; font-weight:500; line-height:1.35;
  padding:7px 10px; border-radius:9px; white-space:normal; width:max-content; max-width:220px;
  box-shadow:0 8px 24px rgba(0,0,0,.28); opacity:0; pointer-events:none; z-index:600;
  transition:opacity .18s ease, transform .18s ease; transition-delay:0s;
}
[data-tip]::before{
  content:""; position:absolute; left:50%; bottom:calc(100% + 3px); transform:translateX(-50%) translateY(4px);
  border:6px solid transparent; border-top-color:#14162a; opacity:0; pointer-events:none; z-index:600;
  transition:opacity .18s ease, transform .18s ease;
}
/* only appears after the pointer rests ~600ms */
[data-tip]:hover::after, [data-tip]:hover::before{ opacity:1; transform:translateX(-50%) translateY(0); transition-delay:.55s; }
[data-tip][data-tip-side="bottom"]::after{ bottom:auto; top:calc(100% + 9px); }
[data-tip][data-tip-side="bottom"]::before{ bottom:auto; top:calc(100% + 3px); border-top-color:transparent; border-bottom-color:#14162a; }
body.light-theme [data-tip]::after{ background:#14162a; }
@media (hover:none){ [data-tip]::after,[data-tip]::before{ display:none; } }

/* ── Page + element entrance animations ── */
@keyframes estio-fade-up { from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }
@keyframes estio-fade-in { from{ opacity:0; } to{ opacity:1; } }
@keyframes estio-slide-in-right { from{ opacity:0; transform:translateX(26px); } to{ opacity:1; transform:none; } }
@keyframes estio-pop { 0%{ opacity:0; transform:scale(.94); } 60%{ opacity:1; } 100%{ transform:scale(1); } }

/* tab content slides in when shown */
.tab-content.active{ animation:estio-fade-up .42s cubic-bezier(.16,1,.3,1); }

/* staggered reveal for grids/cards on a freshly shown view */
.tab-content.active > *{ animation:estio-fade-up .5s cubic-bezier(.16,1,.3,1) both; }
.tab-content.active > *:nth-child(1){ animation-delay:.02s; }
.tab-content.active > *:nth-child(2){ animation-delay:.07s; }
.tab-content.active > *:nth-child(3){ animation-delay:.12s; }
.tab-content.active > *:nth-child(4){ animation-delay:.17s; }
.tab-content.active > *:nth-child(5){ animation-delay:.22s; }
.tab-content.active > *:nth-child(n+6){ animation-delay:.26s; }

/* cards that animate themselves in when added to DOM */
.anim-in{ animation:estio-fade-up .5s cubic-bezier(.16,1,.3,1) both; }
.anim-pop{ animation:estio-pop .4s cubic-bezier(.34,1.56,.64,1) both; }
.stagger > *{ animation:estio-fade-up .5s cubic-bezier(.16,1,.3,1) both; }
.stagger > *:nth-child(1){animation-delay:.04s} .stagger > *:nth-child(2){animation-delay:.09s}
.stagger > *:nth-child(3){animation-delay:.14s} .stagger > *:nth-child(4){animation-delay:.19s}
.stagger > *:nth-child(5){animation-delay:.24s} .stagger > *:nth-child(6){animation-delay:.29s}
.stagger > *:nth-child(7){animation-delay:.34s} .stagger > *:nth-child(8){animation-delay:.39s}

/* dialog/modal entrance (promise-based Dialog uses .dialog-bg/.dialog) */
.dialog-bg{ animation:estio-fade-in .2s ease; }
.dialog{ animation:estio-pop .32s cubic-bezier(.34,1.56,.64,1); }

/* full page first paint */
body{ animation:estio-fade-in .35s ease; }

/* lift interactive cards on hover */
.glass-hover, .listing-card, .request-card, .price-card, .booking-card, .stat-card, .thread-item{
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, border-color .22s ease;
}
.glass-hover:hover, .listing-card:hover, .request-card:hover, .booking-card:hover, .thread-item:hover{
  transform: translateY(-3px); box-shadow:0 16px 40px rgba(0,0,0,.18);
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* upload hint under the dropzone */
.upload-hint { margin-top:8px; font-size:.72rem; color:var(--txt2); display:flex; align-items:center; gap:6px; justify-content:center; }
.upload-hint i { color:var(--accent); }

/* ── Payment method picker (record-payment dialog) ── */
.pay-methods { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pay-method { display:flex; align-items:center; gap:8px; justify-content:center; padding:11px 10px; border-radius:12px; border:1.5px solid var(--glass-border); background:var(--glass-bg,rgba(255,255,255,.03)); color:var(--txt); font-size:.82rem; font-weight:600; cursor:pointer; transition:border-color .15s ease, background .15s ease, transform .12s ease; }
.pay-method:hover { transform:translateY(-1px); }
.pay-method.active { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 12%, transparent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%, transparent); }
.pay-auto-note { font-size:.74rem; color:var(--txt2); display:flex; align-items:center; gap:7px; padding:8px 10px; border-radius:9px; background:color-mix(in srgb,var(--accent) 8%, transparent); }
.pay-auto-note i { color:var(--accent); }

/* ── Receipt preview modal ── */
.receipt-bg { opacity:1; transition:opacity .18s ease; }
.receipt-modal { width:min(520px, 94vw); max-width:520px; display:flex; flex-direction:column; padding:0; overflow:hidden; }
.receipt-modal-head { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; border-bottom:1px solid var(--glass-border); font-weight:700; }
.receipt-modal-head .dialog-x { background:none; border:none; color:var(--txt2); cursor:pointer; font-size:1.05rem; padding:4px 8px; }
.receipt-modal-head .dialog-x:hover { color:var(--txt); }
.receipt-frame-wrap { background:#525659; padding:0; }
.receipt-frame { width:100%; height:min(56vh, 520px); border:0; display:block; background:#fff; }
.receipt-sent { display:flex; align-items:center; gap:8px; font-size:.8rem; color:var(--teal,#19c39c); padding:11px 18px; background:color-mix(in srgb, var(--teal,#19c39c) 9%, transparent); }
.receipt-sent i { font-size:.95rem; }
.receipt-modal-actions { display:flex; justify-content:flex-end; gap:10px; padding:14px 18px; border-top:1px solid var(--glass-border); }

/* gold button used for "Confirm" pending payments */
.btn-gold { background:linear-gradient(135deg,#f0a93a,#e8911a); color:#3a2400; }
.btn-gold:hover { filter:brightness(1.04); }

/* ── My Plan: upgrade emphasis + custom card ── */
.price-card.upgrade-available { border-color:color-mix(in srgb,var(--accent) 45%, transparent); box-shadow:0 0 0 1px color-mix(in srgb,var(--accent) 25%, transparent); }
.price-badge-up { background:linear-gradient(135deg,var(--accent),#9d7bff) !important; color:#fff !important; }
.price-badge-sales { background:#1f2440 !important; color:#cbd2ff !important; }
.price-card-custom { border-style:dashed !important; }
.price-card-custom .price-amount { color:var(--txt); }

/* ── Enterprise AI assistant ── */
.ai-launcher { position:fixed; bottom:20px; right:20px; z-index:351; }
.ai-launcher.hidden { display:none !important; }
.ai-fab { width:56px; height:56px; border-radius:50%; border:none; cursor:pointer; color:#fff;
  background:linear-gradient(135deg,#7c6bff,#b06bff 60%,#2dd4bf); box-shadow:0 10px 28px rgba(124,107,255,.45);
  font-size:1.3rem; display:grid; place-items:center; position:relative; transition:transform .2s var(--ease,ease); }
.ai-fab::after { content:""; position:absolute; inset:-4px; border-radius:50%; background:inherit; filter:blur(10px); opacity:.5; z-index:-1; animation:ai-pulse 2.6s ease-in-out infinite; }
.ai-fab:hover { transform:scale(1.07) rotate(-4deg); }
@keyframes ai-pulse { 0%,100%{ opacity:.35; transform:scale(1) } 50%{ opacity:.6; transform:scale(1.12) } }

.ai-panel { position:fixed; bottom:20px; right:20px; width:min(400px, calc(100vw - 32px)); height:min(620px, calc(100vh - 90px));
  background:var(--surface,#11132a); border:1px solid var(--glass-border); border-radius:20px; z-index:360;
  display:flex; flex-direction:column; overflow:hidden; opacity:0; pointer-events:none;
  transform:translateY(24px) scale(.96); transition:opacity .28s var(--ease,ease), transform .28s cubic-bezier(.16,1,.3,1);
  box-shadow:0 24px 64px rgba(0,0,0,.4); backdrop-filter:blur(20px); }
.ai-panel.open { opacity:1; pointer-events:auto; transform:none; }
.ai-head { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--glass-border);
  background:linear-gradient(135deg, color-mix(in srgb,var(--accent) 18%, transparent), transparent); }
.ai-head-id { display:flex; align-items:center; gap:11px; }
.ai-orb { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; color:#fff; font-size:1.05rem;
  background:linear-gradient(135deg,#7c6bff,#2dd4bf); box-shadow:0 4px 14px rgba(124,107,255,.4); }
.ai-title { font-weight:700; font-size:.98rem; }
.ai-sub { font-size:.72rem; color:var(--txt2); }
.ai-messages { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:14px; }
.ai-row { display:flex; gap:9px; max-width:90%; animation:estio-fade-up .35s ease; }
.ai-row.user { align-self:flex-end; }
.ai-row.bot { align-self:flex-start; }
.ai-avatar { width:28px; height:28px; border-radius:9px; flex:0 0 auto; display:grid; place-items:center; color:#fff; font-size:.7rem;
  background:linear-gradient(135deg,#7c6bff,#2dd4bf); }
.ai-bubble { padding:11px 14px; border-radius:15px; font-size:.86rem; line-height:1.55; }
.ai-row.user .ai-bubble { background:linear-gradient(135deg,var(--accent),#9d7bff); color:#fff; border-bottom-right-radius:5px; }
.ai-row.bot .ai-bubble { background:var(--glass-hover,rgba(255,255,255,.05)); color:var(--txt); border:1px solid var(--glass-border); border-bottom-left-radius:5px; }
.ai-suggest { display:flex; flex-wrap:wrap; gap:7px; padding:0 16px 12px; }
.ai-chip { font-size:.74rem; font-weight:600; padding:7px 12px; border-radius:99px; border:1px solid var(--glass-border);
  background:var(--glass-bg,rgba(255,255,255,.03)); color:var(--txt2); cursor:pointer; transition:all .15s ease; }
.ai-chip:hover { color:var(--accent); border-color:var(--accent); transform:translateY(-1px); }
.ai-input-area { display:flex; gap:8px; padding:12px 14px; border-top:1px solid var(--glass-border); }
.ai-input-area .input { border-radius:99px; }
.ai-input-area .btn { border-radius:99px; width:40px; height:40px; padding:0; flex-shrink:0; }
.ai-typing { display:inline-flex; gap:4px; align-items:center; }
.ai-typing span { width:7px; height:7px; border-radius:50%; background:var(--txt2); animation:ai-typing 1.2s infinite; }
.ai-typing span:nth-child(2){ animation-delay:.2s } .ai-typing span:nth-child(3){ animation-delay:.4s }
@keyframes ai-typing { 0%,60%,100%{ opacity:.3; transform:translateY(0) } 30%{ opacity:1; transform:translateY(-3px) } }
@media (max-width:480px){ .ai-launcher{ right:78px; } .ai-panel{ height:calc(100vh - 80px); } }

/* ── Receipt logo uploader (settings) ── */
.receipt-logo-row { border-top:1px solid var(--glass-border); padding-top:16px; }
.logo-uploader { display:flex; align-items:center; gap:16px; }
.logo-preview { width:96px; height:64px; border-radius:12px; border:1.5px dashed var(--glass-border); display:grid; place-items:center; color:var(--txt2); font-size:1.4rem; overflow:hidden; background:var(--glass-bg,rgba(255,255,255,.03)); flex:0 0 auto; }
.logo-preview img { width:100%; height:100%; object-fit:contain; }
.logo-actions { display:flex; flex-direction:column; gap:8px; }

/* ── My Tenants: book-style detail modal ── */
.book-bg { opacity:1; transition:opacity .2s ease; }
.book-modal { position:relative; width:min(860px, 94vw); max-height:90vh; background:var(--surface,#11132a);
  border:1px solid var(--glass-border); border-radius:20px; box-shadow:0 30px 80px rgba(0,0,0,.45); overflow:hidden;
  display:flex; flex-direction:column; animation:estio-pop .34s cubic-bezier(.34,1.56,.64,1); }
.book-x { position:absolute; top:14px; right:16px; z-index:2; background:rgba(255,255,255,.08); border:none; color:var(--txt);
  width:34px; height:34px; border-radius:10px; cursor:pointer; transition:background .15s ease; }
.book-x:hover { background:rgba(255,255,255,.18); }
.book-spread { display:grid; grid-template-columns:1fr 1px 1fr; gap:0; overflow:auto; padding:8px; }
.book-spine { background:linear-gradient(180deg,transparent,var(--glass-border),transparent); }
.book-page { padding:26px 28px; }
.book-profile { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.book-avatar { width:56px; height:56px; border-radius:16px; display:grid; place-items:center; font-weight:700; font-size:1.3rem; color:#fff;
  background:linear-gradient(135deg,var(--accent),#9d7bff); box-shadow:0 6px 18px rgba(124,107,255,.35); }
.book-name { font-family:'Syne',sans-serif; font-weight:700; font-size:1.25rem; }
.book-meta { margin-top:4px; }
.book-section-title { font-size:.7rem; text-transform:uppercase; letter-spacing:.14em; color:var(--accent); font-weight:700; margin:18px 0 8px; }
.book-row { display:flex; justify-content:space-between; gap:14px; padding:8px 0; border-bottom:1px solid var(--glass-border); font-size:.86rem; }
.book-row .bk { color:var(--txt2); }
.book-row .bv { font-weight:600; text-align:right; }
.book-row .bv a { color:var(--accent); text-decoration:none; }
.book-total { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-radius:10px;
  background:color-mix(in srgb,var(--accent) 10%, transparent); margin-bottom:10px; }
.book-total strong { font-size:1.05rem; }
.book-pay { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid var(--glass-border); font-size:.82rem; }
.book-pay span:first-child { color:var(--txt2); flex:1; }
.book-pay-amt { font-weight:600; }
.book-actions { display:flex; justify-content:flex-end; gap:10px; padding:14px 20px; border-top:1px solid var(--glass-border); }
@media (max-width:720px){
  .book-spread { grid-template-columns:1fr; }
  .book-spine { display:none; }
  .book-page { padding:18px 20px; }
}

/* ── Admin: segmented tabs, health, plans, check-line ── */
.seg-tabs { display:inline-flex; background:var(--glass-bg,rgba(255,255,255,.04)); border:1px solid var(--glass-border); border-radius:99px; padding:4px; gap:4px; }
.seg-tab { display:inline-flex; align-items:center; gap:8px; padding:8px 16px; border-radius:99px; border:none; background:none; color:var(--txt2); font-weight:600; font-size:.84rem; cursor:pointer; transition:all .15s ease; }
.seg-tab.active { background:var(--accent); color:#fff; }
.seg-count { font-size:.7rem; background:rgba(255,255,255,.18); padding:1px 7px; border-radius:99px; }
.seg-tab:not(.active) .seg-count { background:var(--glass-border); }

.health-orb { width:48px; height:48px; border-radius:14px; display:grid; place-items:center; font-size:1.3rem; color:#fff; flex:0 0 auto; }
.health-orb.ok { background:linear-gradient(135deg,#19c39c,#0ea371); }
.health-orb.bad { background:linear-gradient(135deg,#f0a93a,#e8541a); }
.health-row { display:flex; flex-direction:column; gap:8px; padding:12px 16px; border:1px solid var(--glass-border); border-radius:12px; margin-bottom:8px; background:var(--glass-bg,rgba(255,255,255,.02)); }
.health-row-main { display:flex; align-items:center; gap:12px; }
.health-row .health-ico { color:#19c39c; font-size:1.05rem; }
.health-row.bad { border-color:color-mix(in srgb,#e8541a 40%, transparent); background:color-mix(in srgb,#e8541a 8%, transparent); }
.health-row.bad .health-ico { color:#e8541a; }
.health-fix { flex:0 0 auto; margin-left:auto; }
.health-hint { font-size:.78rem; color:var(--txt2); display:flex; gap:7px; align-items:flex-start; padding-left:30px; }
.health-hint i { color:var(--gold); margin-top:2px; }
.health-name { font-weight:600; font-size:.88rem; }
.health-detail { font-size:.8rem; color:var(--txt2); flex:1; }
/* System logs */
.log-row { display:flex; gap:12px; padding:11px 14px; border:1px solid var(--glass-border); border-radius:12px; margin-bottom:7px; background:var(--glass-bg,rgba(255,255,255,.02)); }
.log-dot { width:9px; height:9px; border-radius:50%; margin-top:6px; flex:0 0 auto; }
.log-body { flex:1; min-width:0; }
.log-top { display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
.log-action { font-weight:600; font-size:.86rem; font-family:var(--font-mono); }
.log-time { font-size:.72rem; color:var(--txt3); white-space:nowrap; }
.log-who { font-size:.76rem; color:var(--txt2); margin-top:3px; }
.log-meta { font-size:.72rem; color:var(--txt3); margin-top:5px; word-break:break-word; font-family:var(--font-mono); background:rgba(127,127,127,.08); padding:5px 8px; border-radius:7px; }

.check-line { display:flex; align-items:center; gap:8px; font-size:.85rem; color:var(--txt); cursor:pointer; }
.check-line input { width:16px; height:16px; accent-color:var(--accent); }

.thread-item { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1px solid var(--glass-border); border-radius:14px; margin-bottom:8px; cursor:pointer; background:var(--glass-bg,rgba(255,255,255,.02)); }

/* ── Notification source chips ── */
.notif-src { display:inline-flex; align-items:center; gap:4px; font-size:.62rem; font-weight:700; padding:1px 7px; border-radius:99px; margin-left:6px; vertical-align:middle; text-transform:uppercase; letter-spacing:.03em; }
.notif-src.src-admin { background:color-mix(in srgb,#e8911a 16%, transparent); color:#e8911a; }
.notif-src.src-landlord { background:color-mix(in srgb,var(--accent) 16%, transparent); color:var(--accent); }
.notif-src.src-system { background:var(--glass-border); color:var(--txt2); }

/* AI write button on the listing form */
.ai-fill-btn { display:inline-flex; align-items:center; gap:6px; font-size:.74rem; font-weight:700; padding:5px 11px; border-radius:99px; border:none; cursor:pointer; color:#fff; background:linear-gradient(135deg,#7c6bff,#2dd4bf); transition:transform .15s ease, filter .15s ease; }
.ai-fill-btn:hover { transform:translateY(-1px); filter:brightness(1.05); }
.ai-fill-btn:disabled { opacity:.7; cursor:default; }

/* ══════════════════════════════════════════════════════════════
   UPDATE 007 — TioAI, Snackbar, Search, Plan gating, Maps,
   floating navbar, responsive tables. (Appended block.)
   ══════════════════════════════════════════════════════════════ */

/* ── TioAI launcher (BOTTOM-LEFT so it never blocks the human chat) ── */
.tioai-fab{position:fixed;right:20px;bottom:22px;z-index:1200;display:inline-flex;align-items:center;gap:9px;
  padding:12px 16px;border:none;border-radius:99px;cursor:pointer;color:#fff;font-weight:700;font-size:.86rem;
  background:linear-gradient(135deg,#7c6bff,#9b6bff 45%,#2dd4bf);box-shadow:0 10px 30px rgba(124,107,255,.45);
  transition:transform .18s ease, box-shadow .18s ease;}
.tioai-fab:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(124,107,255,.55);}
.tioai-fab.active{transform:scale(.96);}
.tioai-fab .tioai-fab-glow{position:absolute;inset:0;border-radius:99px;background:inherit;filter:blur(14px);opacity:.55;z-index:-1;animation:tioaiPulse 3s ease-in-out infinite;}
.tioai-fab i{font-size:1rem;}
@keyframes tioaiPulse{0%,100%{opacity:.4;transform:scale(1)}50%{opacity:.7;transform:scale(1.06)}}
@media(max-width:520px){.tioai-fab .tioai-fab-label{display:none;}.tioai-fab{padding:14px;}}

.tioai-panel{position:fixed;right:20px;bottom:84px;z-index:1300;width:380px;max-width:calc(100vw - 32px);
  height:540px;max-height:calc(100vh - 120px);display:flex;flex-direction:column;border-radius:20px;overflow:hidden;
  background:var(--surface,#0e0e1a);border:1px solid var(--glass-border);box-shadow:0 30px 80px rgba(0,0,0,.55);
  transform:translateY(16px) scale(.98);opacity:0;pointer-events:none;transition:all .24s cubic-bezier(.2,.8,.2,1);}
.tioai-panel.show{transform:none;opacity:1;pointer-events:auto;}
body.light-theme .tioai-panel{background:#fff;}
.tioai-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;
  background:linear-gradient(135deg,rgba(124,107,255,.18),rgba(45,212,191,.12));border-bottom:1px solid var(--glass-border);}
.tioai-head-id{display:flex;align-items:center;gap:11px;}
.tioai-head-id strong{display:block;font-size:.98rem;}
.tioai-sub{font-size:.72rem;color:var(--txt2);}
.tioai-orb{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#fff;
  background:linear-gradient(135deg,#7c6bff,#2dd4bf);box-shadow:0 4px 16px rgba(124,107,255,.5);}
.tioai-x{background:none;border:none;color:var(--txt2);cursor:pointer;font-size:1rem;padding:6px;}
.tioai-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px;}
.tioai-msg{max-width:86%;padding:11px 14px;border-radius:14px;font-size:.875rem;line-height:1.55;white-space:normal;}
.tioai-me{align-self:flex-end;background:linear-gradient(135deg,#7c6bff,#9b6bff);color:#fff;border-bottom-right-radius:5px;}
.tioai-ai{align-self:flex-start;background:var(--glass-bg);border:1px solid var(--glass-border);border-bottom-left-radius:5px;}
body.light-theme .tioai-ai{background:#f3f3f8;border-color:#e7e7ef;}
.tioai-li{display:block;padding-left:14px;position:relative;}
.tioai-li::before{content:'•';position:absolute;left:0;color:var(--accent);}
.tioai-chips{display:flex;flex-wrap:wrap;gap:7px;}
.tioai-chip{font-size:.78rem;padding:7px 12px;border-radius:99px;cursor:pointer;color:var(--txt);
  background:var(--glass-bg);border:1px solid var(--glass-border);transition:background .15s;}
.tioai-chip:hover{background:var(--glass-hover);}
.tioai-input{display:flex;gap:8px;padding:12px;border-top:1px solid var(--glass-border);}
.tioai-input input{flex:1;background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:99px;
  padding:11px 16px;color:var(--txt);font-size:.875rem;outline:none;}
.tioai-input input:focus{border-color:var(--accent);}
.tioai-input button{width:42px;height:42px;border:none;border-radius:50%;cursor:pointer;color:#fff;
  background:linear-gradient(135deg,#7c6bff,#2dd4bf);display:grid;place-items:center;flex:0 0 auto;}

/* Canva-style "magic diamonds" thinking animation */
.tioai-thinking{display:flex;align-items:center;gap:10px;}
.tioai-magic{position:relative;width:34px;height:22px;}
.tioai-magic.small{transform:scale(.9);}
.tioai-magic .diamond{position:absolute;width:9px;height:9px;border-radius:2px;
  background:linear-gradient(135deg,#9b6bff,#2dd4bf);transform:rotate(45deg);opacity:.9;
  box-shadow:0 0 10px rgba(124,107,255,.7);animation:tioaiSparkle 1.4s ease-in-out infinite;}
.tioai-magic .d1{left:0;top:6px;animation-delay:0s;}
.tioai-magic .d2{left:13px;top:0;width:12px;height:12px;animation-delay:.18s;}
.tioai-magic .d3{left:26px;top:8px;width:7px;height:7px;animation-delay:.36s;}
@keyframes tioaiSparkle{0%,100%{transform:rotate(45deg) scale(.7);opacity:.35;}50%{transform:rotate(225deg) scale(1.15);opacity:1;}}
.tioai-thinking-text{font-size:.8rem;color:var(--txt2);background:linear-gradient(90deg,var(--txt2),var(--accent),var(--txt2));
  background-size:200% auto;-webkit-background-clip:text;background-clip:text;color:transparent;animation:tioaiShimmer 2s linear infinite;}
@keyframes tioaiShimmer{to{background-position:-200% center;}}

/* Inline AI summary card */
.ai-summary{padding:18px;border-radius:16px;margin-bottom:18px;}
.ai-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.ai-summary-title{font-weight:700;display:flex;align-items:center;gap:8px;}
.ai-summary-title i{background:linear-gradient(135deg,#7c6bff,#2dd4bf);-webkit-background-clip:text;background-clip:text;color:transparent;}
.ai-summary-out{margin-top:12px;font-size:.9rem;line-height:1.65;color:var(--txt2);}
.ai-summary-out:empty{display:none;}

/* ── Snackbar (bottom status strip) ── */
#snackbar-host{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:3500;display:flex;
  flex-direction:column-reverse;gap:8px;align-items:center;pointer-events:none;width:max-content;max-width:92vw;}
.snackbar{pointer-events:auto;display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:99px;
  font-size:.86rem;color:#fff;background:#1a1a26;border:1px solid var(--glass-border);box-shadow:0 12px 36px rgba(0,0,0,.4);
  opacity:0;transform:translateY(14px);transition:all .25s ease;max-width:92vw;}
.snackbar.show{opacity:1;transform:none;}
.snackbar-success{background:linear-gradient(135deg,#0f9b8a,#2dd4bf);}
.snackbar-error{background:linear-gradient(135deg,#c0392b,#ff6b6b);}
.snackbar-spin{width:15px;height:15px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}

/* ── Global search palette ── */
.gs-btn{width:38px;height:38px;border-radius:50%;border:1px solid var(--glass-border);background:var(--glass-bg);
  color:var(--txt);cursor:pointer;display:grid;place-items:center;transition:background .15s;}
.gs-btn:hover{background:var(--glass-hover);}
.gs-overlay{position:fixed;inset:0;z-index:4000;background:rgba(4,4,10,.55);backdrop-filter:blur(6px);
  display:flex;align-items:flex-start;justify-content:center;padding-top:12vh;opacity:0;transition:opacity .2s;
  pointer-events:none;visibility:hidden;}
.gs-overlay.show{opacity:1;pointer-events:auto;visibility:visible;}
.gs-panel{width:600px;max-width:92vw;border-radius:18px;overflow:hidden;background:var(--surface,#0e0e1a);
  border:1px solid var(--glass-border);box-shadow:0 40px 100px rgba(0,0,0,.6);transform:translateY(-10px);transition:transform .2s;}
.gs-overlay.show .gs-panel{transform:none;}
body.light-theme .gs-panel{background:#fff;}
.gs-input{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--glass-border);}
.gs-input i{color:var(--txt2);}
.gs-input input{flex:1;background:none;border:none;outline:none;color:var(--txt);font-size:1.05rem;}
.gs-input kbd{font-size:.7rem;color:var(--txt2);border:1px solid var(--glass-border);border-radius:6px;padding:2px 7px;}
.gs-results{max-height:50vh;overflow-y:auto;padding:8px;}
.gs-hint{padding:22px;text-align:center;color:var(--txt2);font-size:.875rem;}
.gs-group-title{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--txt3);padding:10px 12px 4px;}
.gs-item{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;text-decoration:none;color:var(--txt);}
.gs-item:hover{background:var(--glass-hover);}
.gs-item i{width:20px;text-align:center;color:var(--accent);}
.gs-item strong{display:block;font-size:.9rem;}
.gs-item span{font-size:.78rem;color:var(--txt2);}

/* ── Plan gating + Upgrade pill ── */
.plan-locked{position:relative;opacity:.92;}
.plan-badge{display:inline-flex;align-items:center;gap:5px;font-size:.66rem;font-weight:800;padding:3px 9px;border-radius:99px;
  margin-left:8px;color:#1a1407;background:linear-gradient(135deg,#f5c842,#ffb347);vertical-align:middle;}
.upgrade-pill{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:800;padding:8px 15px;border-radius:99px;
  text-decoration:none;color:#1a1407;background:linear-gradient(135deg,#f5c842,#ffb347);box-shadow:0 6px 18px rgba(245,200,66,.35);}
.upgrade-pill:hover{filter:brightness(1.04);transform:translateY(-1px);}

/* ── Maps ── */
#map,.estio-map{height:340px;width:100%;border-radius:14px;overflow:hidden;z-index:0;}
.map-tools{display:flex;flex-direction:column;gap:8px;margin-bottom:10px;}
.map-search{position:relative;display:flex;align-items:center;gap:8px;background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:10px;padding:4px 10px;}
.map-search i{color:var(--txt2);}
.map-search-input{flex:1;background:none;border:none;outline:none;color:var(--txt);padding:9px 0;}
.map-geo{background:none;border:none;color:var(--accent);cursor:pointer;font-size:1rem;}
.map-coords{display:flex;gap:8px;}
.map-paste{flex:1;background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:10px;padding:9px 12px;color:var(--txt);outline:none;}
.map-search-results{display:flex;flex-direction:column;gap:2px;}
.map-result{text-align:left;background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:8px;padding:8px 11px;color:var(--txt);font-size:.82rem;cursor:pointer;}
.map-result:hover{background:var(--glass-hover);}

/* ── Floating navbar on scroll ── */
.navbar{transition:background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease, padding .25s ease;}
.navbar.navbar-floating{position:fixed;top:0;left:0;right:0;background:rgba(255,255,255,.72);
  backdrop-filter:saturate(160%) blur(18px);-webkit-backdrop-filter:saturate(160%) blur(18px);
  box-shadow:0 8px 30px rgba(20,20,40,.10);border-bottom:1px solid rgba(20,20,40,.06);}
body:not(.light-landing) .navbar.navbar-floating{background:rgba(10,10,20,.6);box-shadow:0 8px 30px rgba(0,0,0,.4);border-bottom:1px solid var(--glass-border);}

/* ── Responsive tables (auto-wrapped by estio-extras.js) ── */
.table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:12px;}
.table-scroll table{min-width:560px;}
@media(max-width:600px){
  .section,.section-sm{padding-left:16px;padding-right:16px;}
}

/* ── UPDATE 007 · Trial banner + Add-ons ───────────────────── */
.trial-card{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:16px 18px;border-radius:14px;margin-bottom:18px;border:1px solid var(--glass-border);}
.trial-card.active{background:linear-gradient(120deg,rgba(45,212,191,.14),rgba(124,107,255,.12));border-color:rgba(45,212,191,.4);}
.trial-card.offer{background:linear-gradient(120deg,rgba(124,107,255,.12),rgba(155,107,255,.10));border-color:rgba(124,107,255,.35);}
.trial-card.used{background:rgba(255,107,107,.08);border-color:rgba(255,107,107,.3);}
.trial-card .text-sm{color:var(--txt2);margin-top:3px;}
.addons-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;}
.addon-card{display:flex;align-items:center;gap:14px;padding:16px;border:1px solid var(--glass-border);
  border-radius:16px;background:var(--glass-bg,rgba(255,255,255,.02));transition:border-color .2s,box-shadow .2s;}
.addon-card.on{border-color:rgba(124,107,255,.45);box-shadow:0 8px 28px rgba(124,107,255,.14);}
.addon-ic{width:44px;height:44px;border-radius:12px;flex:0 0 auto;display:grid;place-items:center;color:#fff;
  font-size:1.1rem;background:linear-gradient(135deg,var(--accent),var(--accent2));}
.addon-body{flex:1;min-width:0;}
.addon-name{font-weight:600;font-size:.92rem;}
.addon-desc{font-size:.78rem;color:var(--txt2);margin:3px 0 5px;line-height:1.45;}
.addon-price{font-size:.82rem;font-weight:600;color:var(--accent);}
.addon-price span{color:var(--txt3);font-weight:400;}
.addon-switch{flex:0 0 auto;}

/* ── UPDATE 007 · Map picker container ─────────────────────── */
.map-picker{width:100%;border-radius:12px;overflow:hidden;border:1px solid var(--glass-border);}
.map-picker .leaflet-container{border-radius:12px;font-family:var(--font);}
/* Keep Leaflet panes below modals/snackbar/search (Leaflet defaults to z 400-700). */
.leaflet-pane,.leaflet-top,.leaflet-bottom{z-index:400 !important;}
.leaflet-control{z-index:401 !important;}

/* ══ UPDATE 007.1 · Standalone app title bar (Canva-style) ══════
   Replaces the OS title bar when installed as a PWA. Uses the
   Window Controls Overlay area so the native bar is hidden. */
#app-titlebar{display:none;}
body.estio-standalone #app-titlebar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  position:fixed;top:0;left:0;right:0;
  /* Sit inside the window-controls-overlay titlebar area when available */
  left:env(titlebar-area-x, 0);
  top:env(titlebar-area-y, 0);
  width:env(titlebar-area-width, 100%);
  height:env(titlebar-area-height, 40px);
  min-height:40px;
  padding:0 12px;
  background:linear-gradient(90deg,#13132a,#1c1b3a);
  color:#fff;z-index:5000;
  -webkit-app-region:drag; app-region:drag;            /* whole bar draggable */
  border-bottom:1px solid rgba(255,255,255,.08);
}
body.estio-standalone #app-titlebar .tb-left{display:flex;align-items:center;gap:6px;-webkit-app-region:no-drag;app-region:no-drag;}
body.estio-standalone #app-titlebar .tb-logo{font-family:var(--font-display);font-weight:800;font-size:1rem;margin-left:6px;color:#fff;}
body.estio-standalone #app-titlebar .tb-logo span{color:var(--accent);}
body.estio-standalone #app-titlebar .tb-title{flex:1;text-align:center;font-size:.82rem;color:rgba(255,255,255,.7);pointer-events:none;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
body.estio-standalone #app-titlebar .tb-nav{width:30px;height:26px;border-radius:7px;border:none;background:rgba(255,255,255,.08);
  color:#fff;cursor:pointer;font-size:.72rem;-webkit-app-region:no-drag;app-region:no-drag;transition:background .15s;}
body.estio-standalone #app-titlebar .tb-nav:hover{background:rgba(255,255,255,.18);}
body.estio-standalone #app-titlebar .tb-right{width:140px;-webkit-app-region:no-drag;}  /* reserve space for OS window controls */
/* Push the app content below our custom bar so nothing hides under it. */
body.estio-standalone{padding-top:env(titlebar-area-height,40px);}
body.estio-standalone .navbar{top:env(titlebar-area-height,40px);}
@media (display-mode: browser){ #app-titlebar{display:none !important;} }

/* Pending (optimistic) chat bubble — dims slightly until confirmed */
.chat-row.pending .chat-bubble{opacity:.65;}
.chat-row.pending .chat-meta{font-style:italic;opacity:.7;}

/* ── UPDATE 007.1 · Nav avatar + logout (landing, logged-in) ── */
.nav-account{display:inline-flex;align-items:center;}
.nav-avatar-img{width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid var(--glass-border);}
.nav-logout{display:inline-flex;align-items:center;gap:7px;}
@media(max-width:640px){ .nav-logout span, .nav-logout{font-size:.8rem;} }
/* Profile picture controls in settings */
.avatar-edit{display:flex;align-items:center;gap:16px;margin-bottom:18px;}
.avatar-edit .ae-pic{width:76px;height:76px;border-radius:50%;object-fit:cover;border:2px solid var(--glass-border);background:linear-gradient(135deg,var(--accent),var(--accent2));display:grid;place-items:center;color:#fff;font-weight:700;font-size:1.6rem;overflow:hidden;flex:0 0 auto;}
.avatar-edit .ae-pic img{width:100%;height:100%;object-fit:cover;}
.avatar-edit .ae-actions{display:flex;flex-direction:column;gap:8px;}

/* ── UPDATE 007.1 · Plan "Know more" link + partner payment logos ── */
.btn-knowmore{display:inline-flex;align-items:center;gap:6px;background:none;border:none;cursor:pointer;
  color:var(--accent);font-size:.8rem;font-weight:600;padding:4px 0;margin-bottom:10px;font-family:var(--font);}
.btn-knowmore:hover{text-decoration:underline;}

/* ══ UPDATE 007.1 · TioGuide (public first-visit assistant) ════ */
.tioguide-fab{position:fixed;right:20px;bottom:22px;z-index:3200;width:56px;height:56px;border-radius:50%;
  border:none;cursor:pointer;color:#fff;font-size:1.25rem;background:linear-gradient(135deg,var(--accent),#9b6bff);
  box-shadow:0 12px 30px rgba(124,107,255,.45);transition:transform .2s;animation:tgPulse 3s ease-in-out infinite;}
.tioguide-fab:hover{transform:scale(1.07);}
.tioguide-fab.active{animation:none;}
@keyframes tgPulse{0%,100%{box-shadow:0 12px 30px rgba(124,107,255,.45);}50%{box-shadow:0 12px 44px rgba(124,107,255,.7);}}
.tioguide-panel{position:fixed;right:20px;bottom:88px;z-index:3201;width:360px;max-width:calc(100vw - 32px);
  max-height:72vh;display:flex;flex-direction:column;border-radius:18px;overflow:hidden;opacity:0;visibility:hidden;
  transform:translateY(14px) scale(.98);transition:all .22s;background:var(--surface);border:1px solid var(--glass-border);
  box-shadow:0 30px 80px rgba(20,22,50,.30);}
body:not(.light-theme) .tioguide-panel{background:#13132a;}
.tioguide-panel.open{opacity:1;visibility:visible;transform:none;}
.tg-head{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;color:#fff;
  background:linear-gradient(120deg,#13132a,#241f48);}
.tg-id{display:flex;align-items:center;gap:8px;font-size:.92rem;}
.tg-spark{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;font-size:.72rem;
  background:linear-gradient(135deg,var(--accent),#9b6bff);}
.tg-x{background:none;border:none;color:rgba(255,255,255,.8);font-size:1.4rem;line-height:1;cursor:pointer;}
.tg-body{flex:1;overflow-y:auto;padding:15px;display:flex;flex-direction:column;gap:9px;background:var(--void);}
.tg-msg{max-width:85%;padding:10px 13px;border-radius:14px;font-size:.86rem;line-height:1.5;}
.tg-msg.bot{align-self:flex-start;background:var(--surface);border:1px solid var(--glass-border);border-bottom-left-radius:5px;color:var(--txt);}
.tg-msg.me{align-self:flex-end;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;border-bottom-right-radius:5px;}
.tg-cta{display:flex;gap:8px;flex-wrap:wrap;align-self:flex-start;margin-top:2px;}
.tg-quick{display:flex;gap:7px;flex-wrap:wrap;padding:10px 15px;border-top:1px solid var(--glass-border);background:var(--surface);}
.tg-quick button{font-size:.76rem;padding:6px 11px;border-radius:20px;border:1px solid var(--glass-border);
  background:var(--void);color:var(--txt2);cursor:pointer;transition:all .15s;}
.tg-quick button:hover{color:var(--accent);border-color:var(--accent);}
.tg-input{display:flex;gap:8px;padding:11px 13px;border-top:1px solid var(--glass-border);background:var(--surface);}
.tg-input input{flex:1;border:1px solid var(--glass-border);border-radius:11px;padding:9px 12px;font-size:.86rem;
  background:var(--void);color:var(--txt);outline:none;}
.tg-input input:focus{border-color:var(--accent);}
.tg-input button{width:40px;border:none;border-radius:11px;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;cursor:pointer;}
@media(max-width:520px){ .tioguide-panel{right:12px;left:12px;width:auto;bottom:84px;} .tioguide-fab{right:14px;} }

/* ══ UPDATE 007.1 · Landlord verification wizard ══════════════ */
.verify-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;position:relative;z-index:1;}
.verify-card{width:100%;max-width:520px;border-radius:var(--radius-lg);padding:34px;}
.verify-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;}
.verify-step-label{font-size:.78rem;font-weight:600;color:var(--accent);text-transform:uppercase;letter-spacing:.08em;}
.verify-progress{height:6px;border-radius:99px;background:var(--glass-border);overflow:hidden;}
.verify-bar{height:100%;background:linear-gradient(90deg,var(--accent),var(--teal));transition:width .35s ease;}
.verify-nav{display:flex;align-items:center;justify-content:space-between;margin-top:22px;gap:12px;}
.id-drop{display:block;border:2px dashed var(--glass-border);border-radius:16px;padding:30px 20px;text-align:center;
  cursor:pointer;transition:border-color .2s,background .2s;}
.id-drop:hover{border-color:var(--accent);background:var(--glass-hover);}
.id-status{margin-top:12px;padding:10px 13px;border-radius:11px;font-size:.84rem;display:flex;align-items:center;gap:8px;}
.id-status.checking{background:rgba(124,107,255,.1);color:var(--accent);}
.id-status.ok{background:rgba(45,212,191,.12);color:#0a8f5b;}
.id-status.err{background:rgba(255,107,107,.12);color:#d34;}

/* ══ UPDATE 007.1 · Monthly report sheet ══════════════════════ */
.report-sheet{border-radius:var(--radius-lg);padding:28px;}
.report-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:3px solid var(--accent);padding-bottom:14px;margin-bottom:18px;}
.report-logo{font-family:var(--font-display);font-weight:800;font-size:1.5rem;color:var(--txt);}
.report-logo span{color:var(--accent);}
.report-narrative{background:var(--glass-hover);border:1px solid var(--glass-border);border-radius:12px;padding:13px 15px;font-size:.9rem;line-height:1.6;margin-bottom:16px;}
.report-narrative i{color:var(--accent);margin-right:6px;}
.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.report-kpi{border:1px solid var(--glass-border);border-radius:12px;padding:16px;}
.report-kpi .rk-n{font-family:var(--font-display);font-weight:800;font-size:1.35rem;color:var(--accent);}
.report-kpi .rk-l{font-size:.76rem;color:var(--txt2);margin-top:4px;}
.report-table{width:100%;border-collapse:collapse;font-size:.85rem;margin-top:6px;}
.report-table th,.report-table td{border:1px solid var(--glass-border);padding:8px 10px;text-align:left;}
.report-table th{background:var(--glass-hover);}
@media(max-width:600px){ .report-grid{grid-template-columns:repeat(2,1fr);} }

/* ══ UPDATE 007.1 · Analytics insight cards ═══════════════════ */
.insight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:24px;}
.insight-card{border-radius:var(--radius);padding:20px;}
.insight-card h4{font-size:.95rem;margin-bottom:12px;display:flex;align-items:center;gap:8px;}
.insight-list{list-style:none;margin:0;padding:0;counter-reset:i;}
.insight-list li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--glass-border);font-size:.87rem;align-items:center;}
.insight-list li:last-child{border-bottom:none;}
.insight-list li::before{counter-increment:i;content:counter(i);width:22px;height:22px;flex:0 0 auto;border-radius:50%;
  background:var(--glass-hover);color:var(--accent);font-weight:700;font-size:.72rem;display:grid;place-items:center;margin-right:8px;}
.insight-list li span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.insight-list li b{color:var(--txt2);font-weight:600;white-space:nowrap;}
