/* ============================================================
   PortalGrid — app.css
   Single source of truth for all UI styles.
   Linked from includes/layout.php — applies to every page.
   ============================================================ */

/* ── Reset ───────────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

/* ── CSS variables ───────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:       #0f1117;
  --surface:  #1a1d27;
  --surface2: #22263a;
  --surface3: #2a2f45;

  /* Borders */
  --border:  #2e3354;
  --border2: #3d4466;

  /* Text */
  --text:   #e2e8f0;
  --muted:  #8892a4;
  --muted2: #5a6478;

  /* Accent */
  --accent:       #6366f1;
  --accent2:      #818cf8;
  --accent-hover: #4f52c8;

  /* Semantic colours */
  --green:    #10b981;  --green-bg:  rgba(16,185,129,.1);
  --red:      #ef4444;  --red-bg:    rgba(239,68,68,.1);
  --amber:    #f59e0b;  --amber-bg:  rgba(245,158,11,.1);
  --blue:     #0ea5e9;  --blue-bg:   rgba(14,165,233,.1);

  /* Layout */
  --sidebar:  220px;
  --topbar:   58px;
  --radius:   10px;
  --shadow:   0 2px 12px rgba(0,0,0,.3);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar);
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
}
.sidebar-logo {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.logo-text { font-size: 15px; font-weight: 700; letter-spacing: -.3px; }
.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.nav-section {
  padding: 6px 12px 4px;
  font-size: 10px; font-weight: 600;
  color: var(--muted2);
  text-transform: uppercase; letter-spacing: .08em;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  color: var(--muted);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: all .12s;
  border-left: 3px solid transparent;
  cursor: pointer;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active {
  background: #10b981;
  color: #fff;
  border-left-color: #10b981;
  font-weight: 700;
}
.nav-item .icon { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px;
}
.sidebar-footer { padding: 14px 16px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 32px; height: 32px;
  background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name  { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-plan  { font-size: 11px; color: var(--muted); }
.logout-btn {
  color: var(--muted); font-size: 12px; text-decoration: none;
  display: block; margin-top: 10px; padding: 6px 0;
  transition: color .12s;
}
.logout-btn:hover { color: var(--red); }

/* ── Main layout ─────────────────────────────────────────────────────────── */
.main { margin-left: var(--sidebar); flex: 1; display: flex; flex-direction: column; min-height: 100vh; width: calc(100% - var(--sidebar)); box-sizing: border-box; }
.topbar {
  height: var(--topbar);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title  { font-size: 16px; font-weight: 600; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.notif-btn {
  position: relative;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 18px; padding: 4px;
  transition: color .12s;
}
.notif-btn:hover { color: var(--text); }
.notif-dot {
  position: absolute; top: 2px; right: 2px;
  width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
  border: 2px solid var(--surface);
}
.page { flex: 1; padding: 24px; width: 100%; box-sizing: border-box; }

/* ── Command Palette ─────────────────────────────────────────────────────── */
.pg-palette-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px; z-index: 600;
}
.pg-palette {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 14px; width: 100%; max-width: 620px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  display: flex; flex-direction: column; max-height: 80vh;
  overflow: hidden; position: relative;
}
.pg-palette-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--muted); font-weight: 500;
  background: rgba(16,185,129,.08);
  border-radius: 14px 14px 0 0;
  cursor: grab; user-select: none;
}
.pg-palette-header:active { cursor: grabbing; }
.pg-palette-drag-hint {
  font-size: 13px; color: rgba(16,185,129,.6); letter-spacing: 1px; margin-right: 6px;
}
.pg-palette-close {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 3px 10px;
  font-size: 12px; cursor: pointer; font-family: inherit;
}
.pg-palette-close:hover { border-color: var(--border2); }
.pg-palette-body { flex: 1; overflow-y: auto; padding: 20px 18px; }
.pg-palette-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.pg-palette-sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.pg-qa-label {
  font-size: 10px; font-weight: 700; color: var(--muted2);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.pg-sr-count-badge {
  background: var(--surface3); color: var(--muted);
  border-radius: 10px; padding: 1px 6px; font-size: 10px; font-weight: 600;
}
.pg-qa-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px;
}
.pg-qa-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; cursor: pointer;
  text-align: left; font-family: inherit; transition: border-color .1s, background .1s;
}
.pg-qa-btn:hover { border-color: var(--border2); background: var(--surface3); }
.pg-qa-btn.active { border-color: var(--accent); background: rgba(99,102,241,.08); }
.pg-qa-btn strong { font-size: 13px; color: var(--text); font-weight: 600; }
.pg-qa-btn span   { font-size: 12px; color: var(--muted); }
.pg-sr-loading { color: var(--muted); font-size: 13px; padding: 8px 0; }
.pg-sr-count   { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.pg-sr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; text-decoration: none;
  color: var(--text); transition: background .1s; margin-bottom: 4px;
}
.pg-sr-item:hover { background: var(--surface2); }
.pg-sr-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.pg-sr-title { font-size: 13px; font-weight: 600; }
.pg-sr-sub   { font-size: 12px; color: var(--muted); }
.pg-palette-footer {
  padding: 10px 18px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted2); display: flex; align-items: center; gap: 4px;
}
kbd {
  background: var(--surface3); border: 1px solid var(--border2);
  border-radius: 4px; padding: 1px 5px; font-size: 11px;
  font-family: inherit; color: var(--muted);
}

/* ── Draggable Slide Panel ───────────────────────────────────────────────── */
.pg-panel-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 700;
}
.pg-panel {
  position: fixed;
  top: 50%; left: 50%;
  width: 580px; max-width: 95vw; max-height: 90vh;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  z-index: 710; display: flex; flex-direction: column;
  transform: translate(60vw, -50%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.25,0,.2,1), opacity .3s;
  overflow: hidden;
}
.pg-panel--open {
  transform: translate(-50%, -50%) !important;
  opacity: 1 !important;
}
.pg-panel--dragged {
  transform: none !important;
  opacity: 1 !important;
  transition: none;
}
.pg-panel-handle {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  cursor: grab; user-select: none;
  background: rgba(16,185,129,.1);
  border-radius: 14px 14px 0 0;
  flex-shrink: 0;
}
.pg-panel-handle:active { cursor: grabbing; }
.pg-panel-drag-hint {
  font-size: 16px; color: rgba(16,185,129,.7); letter-spacing: 2px; flex-shrink: 0;
}
.pg-panel-title { flex: 1; font-size: 15px; font-weight: 700; }
.pg-panel-close-btn {
  background: none; border: none; color: var(--muted); font-size: 16px;
  cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: color .1s;
}
.pg-panel-close-btn:hover { color: var(--red); }
.pg-panel-error {
  padding: 10px 18px; background: var(--red-bg);
  color: #fca5a5; font-size: 13px; border-bottom: 1px solid rgba(239,68,68,.2);
}
.pg-panel-content { flex: 1; overflow-y: auto; padding: 20px 18px; }
.pg-panel-loading  { color: var(--muted); font-size: 14px; }

/* Add property form styles */
.ap-wrap { max-width: 100%; }
.ap-info-bar {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start;
}
.ap-info-bar p { font-size: 12px; color: var(--muted); width: 100%; margin-top: 4px; }
.ap-badge {
  font-size: 11px; font-weight: 600; border-radius: 20px; padding: 2px 10px;
}
.ap-badge--blue   { background: rgba(14,165,233,.15); color: #7dd3fc; }
.ap-badge--green  { background: var(--green-bg); color: var(--green); }
.ap-badge--muted  { background: var(--surface3); color: var(--muted); }
.ap-section { margin-bottom: 20px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.ap-section-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.ap-section-sub   { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.ap-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ap-field { display: flex; flex-direction: column; gap: 4px; }
.ap-field label {
  font-size: 10px; font-weight: 700; color: var(--muted2);
  letter-spacing: .06em; text-transform: uppercase;
}
.ap-field input, .ap-field select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 7px; padding: 9px 12px; color: var(--text);
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .12s;
}
.ap-field input:focus, .ap-field select:focus { border-color: var(--accent); }
.ap-field select { appearance: auto; }
.ap-hint { font-size: 11px; color: var(--muted2); }
.ap-opt  { font-size: 10px; color: var(--muted2); font-weight: 400; text-transform: none; }
.ap-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.btn-blue {
  background: var(--blue); border: none; color: #fff;
  border-radius: 7px; padding: 8px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: opacity .12s;
}
.btn-blue:hover { opacity: .88; }
.btn-blue:disabled { opacity: .5; cursor: not-allowed; }

/* Toast */
.pg-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity .3s, transform .3s; z-index: 999; pointer-events: none;
}
.pg-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pg-toast--green { background: var(--green); color: #fff; }
.pg-toast--red   { background: var(--red);   color: #fff; }

/* ── Daily Control Bar ───────────────────────────────────────────────────── */
.dc-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: var(--topbar); z-index: 40;
}
.dc-bar--active { border-bottom-color: var(--amber); }
.dc-active-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 20px;
  background: rgba(245,158,11,.08);
  border-bottom: 1px solid rgba(245,158,11,.2);
  flex-wrap: wrap;
}
.dc-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.dc-pill--act      { background: rgba(99,102,241,.2); color: var(--accent2); }
.dc-pill--override { background: rgba(239,68,68,.15); color: #fca5a5; }
.dc-pill--viewas   { background: rgba(14,165,233,.15); color: #7dd3fc; }
.dc-stop-btn {
  margin-left: auto; background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5; border-radius: 6px; padding: 3px 10px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: background .12s;
}
.dc-stop-btn:hover { background: rgba(239,68,68,.3); }
.dc-controls {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px; flex-wrap: wrap;
}
.dc-select {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); border-radius: 7px;
  padding: 6px 12px; font-size: 12px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: border-color .12s, background .12s;
  font-family: inherit;
}
.dc-select:hover { border-color: var(--border2); background: var(--surface3); }
.dc-select--on { border-color: var(--blue); color: var(--blue); }
.dc-select-wrap { position: relative; }
.dc-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 8px; min-width: 200px; max-height: 300px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 200; padding: 4px 0;
}
.dc-dropdown.open { display: block; }
.dc-dd-section {
  padding: 6px 12px 3px; font-size: 10px; font-weight: 700;
  color: var(--muted2); text-transform: uppercase; letter-spacing: .06em;
}
.dc-dd-item {
  display: block; width: 100%; text-align: left;
  padding: 8px 14px; font-size: 13px; color: var(--text);
  background: none; border: none; cursor: pointer;
  transition: background .1s; font-family: inherit;
}
.dc-dd-item:hover { background: var(--surface2); }
.dc-dd-user { padding-left: 22px; color: var(--muted); }
.dc-dd-user:hover { color: var(--text); }
.dc-search-wrap { flex: 1; min-width: 200px; }
.dc-search {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 7px; padding: 6px 12px; color: var(--text);
  font-size: 12px; font-family: inherit; outline: none;
  transition: border-color .12s;
}
.dc-search:focus { border-color: var(--accent); }
.dc-search::placeholder { color: var(--muted2); }
.dc-error {
  padding: 8px 20px; background: var(--red-bg);
  color: #fca5a5; font-size: 12px; border-bottom: 1px solid rgba(239,68,68,.2);
}

/* Daily Control modals */
.dc-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
}
.dc-modal {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 12px; padding: 28px; width: 100%; max-width: 460px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}
.dc-modal h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.dc-modal-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.dc-mode-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.dc-mode-opt {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface2); border: 2px solid var(--border);
  border-radius: 8px; padding: 12px 14px; cursor: pointer;
  text-align: left; font-family: inherit; transition: border-color .12s;
}
.dc-mode-opt:hover { border-color: var(--border2); }
.dc-mode-opt--active { border-color: var(--green); }
.dc-mode-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.dc-mode-opt strong { display: block; font-size: 13px; color: var(--text); }
.dc-mode-opt span { font-size: 12px; color: var(--muted); }
.dc-reason-wrap { margin-bottom: 16px; }
.dc-reason-wrap label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.dc-reason-input {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 7px; padding: 10px 12px; color: var(--text);
  font-size: 13px; font-family: inherit; resize: vertical; outline: none;
  transition: border-color .12s;
}
.dc-reason-input:focus { border-color: var(--accent); }
.dc-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-ghost {
  background: none; border: 1px solid var(--border); color: var(--muted);
  border-radius: 7px; padding: 8px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: border-color .12s, color .12s;
}
.btn-ghost:hover { border-color: var(--border2); color: var(--text); }
.btn-green {
  background: var(--green); border: none; color: #fff;
  border-radius: 7px; padding: 8px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: opacity .12s;
}
.btn-green:hover { opacity: .88; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-title {
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 14px;
}

/* ── Grid helpers ────────────────────────────────────────────────────────── */
.grid   { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

/* ── Stat tiles ──────────────────────────────────────────────────────────── */
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat-label { font-size: 11px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.stat-value { font-size: 26px; font-weight: 700; line-height: 1; }
.stat-sub   { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  font-family: inherit;
  transition: all .12s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface3); }
.btn-danger { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,.2); }
.btn-danger:hover { background: rgba(239,68,68,.18); }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* Coloured ghost button variants */
.btn-blue-faded   { background: rgba(14,165,233,.12);  border: 1px solid rgba(14,165,233,.3);  color: #7dd3fc; }
.btn-blue-faded:hover   { background: rgba(14,165,233,.2);  border-color: rgba(14,165,233,.5); }
.btn-green-faded  { background: rgba(16,185,129,.12);  border: 1px solid rgba(16,185,129,.3);  color: #6ee7b7; }
.btn-green-faded:hover  { background: rgba(16,185,129,.2);  border-color: rgba(16,185,129,.5); }
.btn-purple-faded { background: rgba(99,102,241,.12);  border: 1px solid rgba(99,102,241,.3);  color: var(--accent2); }
.btn-purple-faded:hover { background: rgba(99,102,241,.2);  border-color: rgba(99,102,241,.5); }
.btn-amber-faded  { background: rgba(245,158,11,.12);  border: 1px solid rgba(245,158,11,.3);  color: #fcd34d; }
.btn-amber-faded:hover  { background: rgba(245,158,11,.2);  border-color: rgba(245,158,11,.5); }
.btn-red-faded    { background: rgba(239,68,68,.12);   border: 1px solid rgba(239,68,68,.3);   color: #fca5a5; }
.btn-red-faded:hover    { background: rgba(239,68,68,.2);   border-color: rgba(239,68,68,.5); }
.btn-cyan-faded   { background: rgba(8,145,178,.12);   border: 1px solid rgba(8,145,178,.3);   color: #67e8f9; }
.btn-cyan-faded:hover   { background: rgba(8,145,178,.2);   border-color: rgba(8,145,178,.5); }

/* ── Entity cards (core entities section) ────────────────────────────────── */
.entity-card {
  display: block; border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
  text-decoration: none; transition: border-color .15s, background .15s;
}
.entity-card-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.entity-card-line1 { font-size: 11px; color: var(--muted); }
.entity-card-line2 { font-size: 11px; color: var(--muted2); }

.entity-card--purple { background: rgba(99,102,241,.08); }
.entity-card--purple:hover { background: rgba(99,102,241,.13); border-color: rgba(99,102,241,.35); }
.entity-card--purple .entity-card-title { color: var(--accent2); }

.entity-card--blue { background: rgba(14,165,233,.08); }
.entity-card--blue:hover { background: rgba(14,165,233,.13); border-color: rgba(14,165,233,.35); }
.entity-card--blue .entity-card-title { color: #7dd3fc; }

.entity-card--green { background: rgba(16,185,129,.08); }
.entity-card--green:hover { background: rgba(16,185,129,.13); border-color: rgba(16,185,129,.35); }
.entity-card--green .entity-card-title { color: var(--green); }

.entity-card--amber { background: rgba(245,158,11,.08); }
.entity-card--amber:hover { background: rgba(245,158,11,.13); border-color: rgba(245,158,11,.35); }
.entity-card--amber .entity-card-title { color: #fcd34d; }

.entity-card--cyan { background: rgba(8,145,178,.08); }
.entity-card--cyan:hover { background: rgba(8,145,178,.13); border-color: rgba(8,145,178,.35); }
.entity-card--cyan .entity-card-title { color: #67e8f9; }

/* ── Pills / badges ──────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-red   { background: var(--red-bg);   color: var(--red);   }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-blue  { background: var(--blue-bg);  color: var(--blue);  }
.pill-grey  { background: var(--surface2); color: var(--muted); }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
  padding: 8px 12px; border-bottom: 1px solid var(--border);
  text-align: left;
}
.tbl td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--surface2); }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 12px; font-weight: 500;
  margin-bottom: 5px;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.form-field input,
.form-field select,
.form-field textarea,
.form-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.form-field input::placeholder,
.form-field textarea::placeholder,
.form-input::placeholder { color: var(--muted2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert { border-radius: 8px; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; }
.alert-red   { background: var(--red-bg);   border: 1px solid rgba(239,68,68,.25);   color: #fca5a5; }
.alert-green { background: var(--green-bg); border: 1px solid rgba(16,185,129,.25);  color: #6ee7b7; }
.alert-amber { background: var(--amber-bg); border: 1px solid rgba(245,158,11,.25);  color: #fcd34d; }
.alert-blue  { background: var(--blue-bg);  border: 1px solid rgba(14,165,233,.25);  color: #7dd3fc; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-icon { font-size: 36px; margin-bottom: 12px; }
.empty h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty p  { font-size: 13px; line-height: 1.6; }

/* ── Settings page ───────────────────────────────────────────────────────── */
.settings-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.settings-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.settings-row:first-of-type { padding-top: 0; }
.s-label { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.4; }
.s-hint  { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.form-input { max-width: 420px; }
input[type="number"].form-input { max-width: 120px; }

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.section-header h3 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0;
}

/* ── Toggle switch ───────────────────────────────────────────────────────── */
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--surface3); border: 1px solid var(--border2);
  border-radius: 24px; transition: .2s;
}
.toggle-slider:before {
  content: ''; position: absolute;
  height: 16px; width: 16px; left: 3px; bottom: 3px;
  background: var(--muted); border-radius: 50%; transition: .2s;
}
.toggle input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle-slider:before { transform: translateX(18px); background: #fff; }
.toggle-label { font-size: 13px; color: var(--muted); }

/* ── Modals ──────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow);
}
.modal-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.page-btn {
  padding: 6px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600; text-decoration: none;
  background: var(--surface2); color: var(--muted);
  border: 1px solid var(--border);
  transition: all .12s;
}
.page-btn:hover  { background: var(--surface3); color: var(--text); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   LANDLORD DASHBOARD — ONBOARDING
   ═══════════════════════════════════════════════════════════════ */

/* Two-column layout: wizard left, sidebar right */
.ob-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) clamp(280px,27vw,340px);
  gap: 16px;
  align-items: start;
}
.ob-main  { min-width: 0; display: flex; flex-direction: column; gap: 16px; overflow: visible; }
.ob-sidebar { min-width: 0; display: flex; flex-direction: column; gap: 16px; overflow: visible; }

/* Header */
.ob-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
  width: 100%; box-sizing: border-box;
}
.ob-title    { font-size: 22px; font-weight: 700; margin-bottom: 2px; }
.ob-subtitle { font-size: 14px; color: var(--muted); }
.ob-sub2     { font-size: 12px; color: var(--muted2); margin-top: 2px; }

/* Start here label — centred inside wizard box */
.ob-start-label-wrap {
  display: flex; justify-content: center; margin-bottom: 16px;
}
.ob-start-btn {
  background: var(--green); color: #fff;
  border-radius: 20px; padding: 8px 20px; font-size: 13px; font-weight: 700;
  white-space: nowrap; display: inline-block; user-select: none;
}

/* Wizard container */
.ob-wizard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
  width: 100%; box-sizing: border-box;
}
.ob-wizard--hidden { display: none; }

/* Progress bar */
.ob-progress-bar-wrap { margin-bottom: 16px; }
.ob-progress-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
}
.ob-progress-label {
  background: var(--surface3); border: 1px solid var(--border2);
  border-radius: 20px; padding: 2px 10px;
  font-size: 11px; font-weight: 700; color: var(--text);
}
.ob-progress-count { font-size: 12px; color: var(--muted); }
.ob-prop-line { font-size: 11px; color: var(--muted2); margin-bottom: 6px; }
.ob-progress-track {
  height: 5px; background: var(--surface3); border-radius: 10px; overflow: hidden;
}
.ob-progress-fill {
  height: 100%; background: var(--green); border-radius: 10px;
  transition: width .4s ease;
}

/* Guided bar */
.ob-guided-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.2);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 16px;
}
.ob-guided-text strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.ob-guided-text span   { font-size: 12px; color: var(--muted); }
.ob-guided-btn {
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--text); border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: background .12s;
}
.ob-guided-btn:hover { background: var(--surface3); }

/* Body: steps left column, detail right */
.ob-body {
  display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start;
}
.ob-steps { display: flex; flex-direction: column; gap: 6px; }

/* Step buttons */
.ob-step {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; cursor: pointer;
  font-family: inherit; text-align: left; transition: all .12s;
  width: 100%;
}
.ob-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  background: var(--surface3); color: var(--muted);
}
.ob-step-label { flex: 1; font-size: 12px; font-weight: 600; color: var(--text); }
.ob-step-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  background: var(--red-bg); color: var(--red);
}

/* Step states */
.ob-step--done {
  background: rgba(16,185,129,.18);
  border-color: rgba(16,185,129,.4);
}
.ob-step--done .ob-step-num   { background: var(--green); color: #fff; }
.ob-step--done .ob-step-badge { background: var(--green); color: #fff; }
.ob-step--done .ob-step-label { color: var(--green); }

.ob-step--todo {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.35);
}
.ob-step--todo .ob-step-num   { background: var(--red); color: #fff; }
.ob-step--todo .ob-step-badge { background: var(--red); color: #fff; }

.ob-step--active { border-color: var(--accent); background: rgba(99,102,241,.10); }
.ob-step--active .ob-step-num { background: var(--accent); color: #fff; }

.ob-step:hover       { border-color: var(--border2); background: var(--surface2); }
.ob-step--done:hover { background: rgba(16,185,129,.25); border-color: rgba(16,185,129,.5); }
.ob-step--todo:hover { background: rgba(239,68,68,.22);  border-color: rgba(239,68,68,.45); }

/* Detail panel */
.ob-detail { min-width: 0; }
.ob-panel { display: none; }
.ob-panel--active { display: block; }
.ob-panel-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.ob-panel-title { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.ob-panel-sub   { font-size: 12px; color: var(--muted); }
.ob-panel-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ob-panel-footer {
  display: flex; gap: 10px; margin-top: 16px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.ob-coming-soon {
  text-align: center; padding: 40px 20px; color: var(--muted);
}

/* Compliance cert upload buttons */
.ob-cert-btn {
  width: 100%; max-width: 100%; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid; text-align: center; transition: opacity .2s;
  box-sizing: border-box;
}
.ob-cert-btn--pending  { background: rgba(239,68,68,.12); color: var(--red);   border-color: rgba(239,68,68,.35); }
.ob-cert-btn--uploaded { background: rgba(16,185,129,.12); color: var(--green); border-color: rgba(16,185,129,.35); }
.ob-cert-btn:hover { opacity: .8; }
.ob-cert-btn--uploading {
  position: relative; overflow: hidden;
  background: rgba(99,102,241,.12); color: var(--accent2);
  border-color: rgba(99,102,241,.35);
}
.ob-cert-progress-bar {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 0%; background: rgba(16,185,129,.3);
  transition: width .08s linear; z-index: 0;
}
.ob-cert-progress-text { position: relative; z-index: 1; }

/* Possession-readiness pills + tooltips */
.pg-readiness-wrap { position: relative; display: block; width: 100%; }
.pg-readiness-pill {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 9px 14px; box-sizing: border-box;
  border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: default; letter-spacing: .02em; transition: filter .15s;
}
.pg-readiness-wrap:hover .pg-readiness-pill { filter: brightness(1.15); }
.pg-readiness-pill--ok      { background: rgba(16,185,129,.15);  color: var(--green); border: 1px solid rgba(16,185,129,.35); }
.pg-readiness-pill--amber   { background: rgba(245,158,11,.12);  color: var(--amber); border: 1px solid rgba(245,158,11,.35); }
.pg-readiness-pill--blocked { background: rgba(239,68,68,.12);   color: var(--red);   border: 1px solid rgba(239,68,68,.35); }
.pg-readiness-tooltip {
  display: none; position: absolute; left: 0; top: calc(100% + 8px);
  width: 290px; background: #181b29;
  border-radius: 12px; padding: 14px;
  z-index: 300; box-shadow: 0 20px 50px rgba(0,0,0,.7);
}
.pg-readiness-tooltip--compliance { border: 2px solid rgba(16,185,129,.55); }
.pg-readiness-tooltip--notice     { border: 2px solid rgba(239,68,68,.55); }
.pg-readiness-wrap:hover .pg-readiness-tooltip { display: block; }

/* After onboarding section */
.ob-after {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
  width: 100%; box-sizing: border-box;
}
.ob-after-header { margin-bottom: 14px; }
.ob-after-tabs {
  display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap;
}
.ob-tab {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .12s;
}
.ob-tab--active { background: var(--green); border-color: var(--green); color: #fff; }
.ob-tab:hover:not(.ob-tab--active) { border-color: var(--border2); color: var(--text); }
.ob-after-panel { display: none; }
.ob-after-panel--active { display: block; }

/* Where to work next cards */
.ob-where-next { display: flex; flex-direction: column; gap: 8px; }
.ob-where-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  text-decoration: none; background: var(--surface2); transition: border-color .12s;
}
.ob-where-card:hover { border-color: var(--border2); }
.ob-where-card strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.ob-where-card span   { font-size: 12px; color: var(--muted); }
.ob-where-card--green  { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.06); }
.ob-where-card--green strong { color: var(--green); }
.ob-where-card--teal   { border-color: rgba(14,165,233,.3); background: rgba(14,165,233,.06); }
.ob-where-card--teal strong { color: #7dd3fc; }
.ob-where-card--amber  { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.06); }
.ob-where-card--amber strong { color: var(--amber); }
.ob-where-open {
  background: var(--surface3); border: 1px solid var(--border2);
  color: var(--text); font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 6px; white-space: nowrap; flex-shrink: 0;
}

/* Sidebar cards */
.ob-sidebar-card { padding: 18px; }
.ob-pc-label {
  font-size: 9px; font-weight: 700; color: var(--accent2);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px;
  background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.2);
  display: inline-block; padding: 2px 8px; border-radius: 10px;
}
.ob-pc-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ob-pc-sub   { font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }

/* Task stats */
.ob-task-stats {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.ob-task-stat {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 8px; text-align: center;
}
.ob-task-stat span { display: block; font-size: 22px; font-weight: 800; color: var(--green); }
.ob-task-stat em   { display: block; font-size: 9px; font-weight: 700; color: var(--muted2);
                     text-transform: uppercase; letter-spacing: .06em; font-style: normal; margin-top: 2px; }
.ob-task-stat--red  span { color: var(--red); }
.ob-task-stat--amber span { color: var(--amber); }
.ob-task-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ob-nothing {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; margin-top: 4px;
}

/* Possession card */
.ob-possession-card { border-color: rgba(99,102,241,.2); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .settings-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   LANDLORD TRIAL TOPBAR
   ═══════════════════════════════════════════════════════════════ */
.trial-topbar {
  background: #0f1117;
  border-bottom: 1px solid rgba(245,158,11,.25);
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px; gap: 16px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 90;
}
.trial-topbar-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
.trial-badge {
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.35);
  color: #f59e0b; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap; flex-shrink: 0;
}
.trial-msg { font-size: 12px; color: #8892a4; line-height: 1.4; }
.trial-topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.trial-upgrade-btn {
  background: #6366f1; color: #fff; font-size: 12px; font-weight: 700;
  padding: 7px 16px; border-radius: 7px; text-decoration: none; white-space: nowrap;
  transition: opacity .12s;
}
.trial-upgrade-btn:hover { opacity: .85; }
.trial-countdown-box {
  background: #1a1d27; border: 1px solid #2e3354;
  border-radius: 8px; padding: 7px 14px; text-align: center;
}
.trial-countdown-label { font-size: 9px; font-weight: 700; color: #5a6478; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.trial-countdown-digits { display: flex; align-items: flex-end; gap: 4px; justify-content: center; }
.trial-countdown-digits > div { text-align: center; }
.trial-countdown-digits span { font-size: 18px; font-weight: 800; color: #f59e0b; line-height: 1; display: block; }
.trial-countdown-digits em { font-size: 8px; font-weight: 700; color: #5a6478; text-transform: uppercase; font-style: normal; }
.trial-sep { font-size: 14px; font-weight: 300; color: #3d4466; padding-bottom: 4px; }

/* ═══════════════════════════════════════════════════════════════
   LANDLORD TOPBAR
   ═══════════════════════════════════════════════════════════════ */
.ll-topbar {
  margin-left: 0; /* already inside .main */
  height: 50px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px; gap: 8px;
  position: sticky; top: 0; z-index: 50;
}
.ll-topbar-left  { display: flex; align-items: center; gap: 6px; }
.ll-topbar-centre { flex: 1; display: flex; align-items: center; padding: 0 12px; }
.ll-topbar-right { display: flex; align-items: center; gap: 6px; }

/* Filter buttons — soft teal tint */
.ll-filter-btn {
  display: flex; align-items: center; gap: 4px;
  background: rgba(14,165,233,.08); border: 1px solid rgba(14,165,233,.22);
  color: #7dd3fc; border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit; white-space: nowrap; transition: background .12s, border-color .12s;
}
.ll-filter-btn:hover { background: rgba(14,165,233,.15); border-color: rgba(14,165,233,.4); }
.ll-chevron { font-size: 10px; color: rgba(125,211,252,.6); }

/* Search */
.ll-search-wrap { width: 100%; max-width: 340px; margin: 0 auto; }
.ll-search {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 7px; padding: 6px 12px; color: var(--text);
  font-size: 12px; font-family: inherit; outline: none; transition: border-color .12s;
}
.ll-search:focus { border-color: var(--accent); }
.ll-search::placeholder { color: var(--muted2); }

/* Action buttons — each gets its own soft colour via nth-child in layout,
   but we give a pleasant purple-tinted default and override individually */
.ll-action-btn {
  background: rgba(99,102,241,.09); border: 1px solid rgba(99,102,241,.25);
  color: var(--accent2); border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit; white-space: nowrap; transition: background .12s, border-color .12s;
}
.ll-action-btn:hover { background: rgba(99,102,241,.18); border-color: rgba(99,102,241,.45); }

/* Individual action button colours */
.ll-action-btn--green {
  background: rgba(16,185,129,.09); border-color: rgba(16,185,129,.25); color: #6ee7b7;
}
.ll-action-btn--green:hover { background: rgba(16,185,129,.18); border-color: rgba(16,185,129,.45); }
.ll-action-btn--amber {
  background: rgba(245,158,11,.09); border-color: rgba(245,158,11,.25); color: #fcd34d;
}
.ll-action-btn--amber:hover { background: rgba(245,158,11,.18); border-color: rgba(245,158,11,.45); }
.ll-action-btn--more {
  background: rgba(139,92,246,.09); border-color: rgba(139,92,246,.25); color: #c4b5fd;
}
.ll-action-btn--more:hover { background: rgba(139,92,246,.18); border-color: rgba(139,92,246,.45); }

/* Avatar */
.ll-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; cursor: pointer;
}

/* Dropdowns */
.ll-dd-wrap { position: relative; }
.ll-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 8px; min-width: 200px; max-height: 320px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,.5); z-index: 200; padding: 4px 0;
}
.ll-dropdown.open { display: block; }
.ll-dropdown--right { left: auto; right: 0; }
.ll-dd-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; padding: 9px 14px;
  font-size: 13px; color: var(--text); background: none; border: none;
  cursor: pointer; font-family: inherit; transition: background .1s;
}
.ll-dd-item:hover { background: var(--surface2); }
.ll-dd-item--locked { color: var(--muted); cursor: pointer; }
.ll-dd-item--locked:hover { background: var(--surface2); }
.ll-notif-count {
  background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px;
}
.ll-lock-badge {
  background: rgba(99,102,241,.2); color: var(--accent2);
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   LANDLORD SLIDE PANELS
   ═══════════════════════════════════════════════════════════════ */
.ll-slide-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 800; cursor: pointer; backdrop-filter: blur(2px);
}
.ll-slide {
  position: fixed;
  top: 50%;
  left: calc(50% + 60vw);
  transform: translateY(-50%);
  opacity: 0;
  width: 580px; max-width: 96vw;
  max-height: 88vh;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  z-index: 810; display: flex; flex-direction: column;
  transition: left .38s cubic-bezier(.25,0,.2,1), opacity .25s ease;
  overflow: hidden;
  pointer-events: none;
}
.ll-slide--open {
  left: calc(50% - 290px);
  opacity: 1;
  pointer-events: all;
}
.ll-slide-handle {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  cursor: grab; user-select: none;
  background: rgba(16,185,129,.08);
  border-radius: 14px 14px 0 0;
  flex-shrink: 0;
}
.ll-slide-handle:active { cursor: grabbing; }
.ll-slide-title { flex: 1; font-size: 15px; font-weight: 700; }
.ll-slide-close {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  color: #fca5a5;
  font-size: 12px; font-weight: 700;
  cursor: pointer; padding: 4px 11px;
  border-radius: 6px; transition: background .12s, color .12s;
  line-height: 1.4; font-family: inherit;
}
.ll-slide-close:hover { background: rgba(239,68,68,.3); color: #fff; }
.ll-slide-body {
  flex: 1; overflow-y: auto; padding: 20px 18px;
}

/* ═══════════════════════════════════════════════════════════════
   PLAN LOCKING — NAV
   ═══════════════════════════════════════════════════════════════ */
.nav-item--locked { opacity: .65; cursor: pointer; }
.nav-item--locked:hover { background: var(--surface2) !important; color: var(--muted) !important; }
.nav-plan-badge {
  margin-left: auto;
  background: rgba(99,102,241,.2); color: var(--accent2);
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   LANDLORD SIDEBAR ACCOUNT BLOCK
   ═══════════════════════════════════════════════════════════════ */
.ll-account-block { margin-bottom: 8px; }
.ll-plan-row {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap;
}
.ll-plan-badge {
  background: var(--surface3); border: 1px solid var(--border2);
  color: var(--text); font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}
.ll-plan-price { font-size: 11px; color: var(--muted); font-weight: 600; }
.ll-trial-row {
  margin-top: 6px; font-size: 10px; font-weight: 700;
  color: #f59e0b; background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 6px; padding: 3px 8px; display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════
   UPGRADE MODAL
   ═══════════════════════════════════════════════════════════════ */
.ll-upgrade-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 900; backdrop-filter: blur(3px);
}
.ll-upgrade-box {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 14px; padding: 36px 32px; max-width: 460px; width: 90%;
  text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.ll-upgrade-icon { font-size: 40px; margin-bottom: 14px; }
.ll-upgrade-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.ll-upgrade-msg { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.ll-upgrade-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ll-locked-badge {
  background: var(--red-bg); color: var(--red);
  border: 1px solid rgba(239,68,68,.3);
  font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
}
.ll-upgrade-link-btn {
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--text); font-size: 12px; font-weight: 700;
  padding: 8px 16px; border-radius: 8px; text-decoration: none;
  transition: background .12s, border-color .12s;
}
.ll-upgrade-link-btn:hover { background: var(--surface3); border-color: var(--accent); }
.ll-upgrade-inline {
  text-align: center; padding: 20px 0;
}

/* Trial topbar sits inside .main — no margin-left needed */
.trial-topbar { margin-left: 0; }