/* ============================================================
   ImmoGen23 v2 — Design System
   Light/dark theming via [data-theme="dark"] on <html>.
   Never hardcode colors in pages — always use these variables.
   ============================================================ */

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

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Brand */
  --c1:        #2563eb;   /* primary */
  --c1-hover:  #1d4ed8;
  --c1-soft:   #eff4ff;   /* soft primary bg (chips, hovers) */
  --c1-ring:   rgba(37, 99, 235, .25);
  --grad:      linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);

  /* Semantic */
  --ok:        #16a34a;  --ok-soft:     #eaf7ef;
  --warn:      #d97706;  --warn-soft:   #fdf3e3;
  --danger:    #dc2626;  --danger-soft: #fdecec;
  --info:      #0891b2;  --info-soft:   #e8f7fb;

  /* Surfaces & text */
  --page:      #f6f7fb;   /* page background */
  --surface:   #ffffff;   /* cards */
  --surface2:  #f3f4f8;   /* inputs, wells */
  --surface3:  #e9ebf2;   /* pressed / deep wells */
  --ink:       #101828;   /* main text */
  --ink2:      #475467;   /* secondary text */
  --muted:     #98a2b3;   /* tertiary text */
  --border:    #e4e7ef;
  --border2:   #d0d5e0;   /* stronger border (inputs) */

  /* Elevation */
  --sh-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-md: 0 4px 12px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
  --sh-lg: 0 12px 32px -8px rgba(16, 24, 40, .16);
  --sh-pop: 0 8px 28px -4px rgba(16, 24, 40, .18);

  /* Shape & type */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 16px;  --r-xl: 22px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', var(--font);

  /* Layout */
  --sidebar-w: 248px;
  --topbar-h: 62px;

  color-scheme: light;
}

[data-theme="dark"] {
  --c1:        #3b82f6;
  --c1-hover:  #60a5fa;
  --c1-soft:   #1a2540;
  --c1-ring:   rgba(59, 130, 246, .35);

  --ok-soft:     #12261a;
  --warn-soft:   #2a2012;
  --danger-soft: #2c1515;
  --info-soft:   #10262c;

  --page:      #0b0f1a;
  --surface:   #131a2a;
  --surface2:  #1a2336;
  --surface3:  #232e45;
  --ink:       #eef2f9;
  --ink2:      #a9b4c8;
  --muted:     #6c7891;
  --border:    #232e45;
  --border2:   #324061;

  --sh-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-md: 0 4px 12px -2px rgba(0, 0, 0, .5);
  --sh-lg: 0 12px 32px -8px rgba(0, 0, 0, .6);
  --sh-pop: 0 8px 28px -4px rgba(0, 0, 0, .65);

  color-scheme: dark;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.55;
  background: var(--page); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--c1); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 26px; font-family: var(--font-display); }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p  { margin: 0 0 .8em; }
::selection { background: var(--c1); color: #fff; }

/* Focus visible everywhere */
:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; border-radius: 4px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--r-md); border: 1px solid transparent;
  font: 600 14px/1.2 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .06s;
  text-decoration: none !important; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--c1); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--c1-hover); color: #fff; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: var(--sh-md); border: none; }
.btn-grad:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border2); }
.btn-ghost:hover { border-color: var(--c1); color: var(--c1); }
.btn-soft { background: var(--c1-soft); color: var(--c1); }
.btn-soft:hover { background: var(--c1); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); color: #fff; }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { padding: 13px 26px; font-size: 15.5px; border-radius: var(--r-lg); }
.btn-icon { padding: 8px; width: 36px; height: 36px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

/* ── Forms ──────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label, .flabel {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--ink2);
  margin-bottom: 6px; letter-spacing: .01em;
}
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; padding: 10px 13px; font: 500 14px/1.4 var(--font);
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--border2); border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--c1); box-shadow: 0 0 0 3px var(--c1-ring);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.input-group { display: flex; }
.input-group .input { border-radius: var(--r-md) 0 0 var(--r-md); }
.input-group .btn { border-radius: 0 var(--r-md) var(--r-md) 0; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--c1); width: 16px; height: 16px; }

/* Switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; background: var(--border2); border-radius: 24px;
  transition: .18s; cursor: pointer;
}
.switch .slider::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .18s; box-shadow: var(--sh-sm);
}
.switch input:checked + .slider { background: var(--c1); }
.switch input:checked + .slider::before { transform: translateX(18px); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.card-pad { padding: 22px; }
.card-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
}
.card-hd h3 { margin: 0; }
.card-bd { padding: 22px; }
.card-hover { transition: box-shadow .18s, transform .18s, border-color .18s; }
.card-hover:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); border-color: var(--border2); }

/* ── Badges / chips ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 100px; font-size: 12px; font-weight: 600; line-height: 1.6;
}
.badge-blue   { background: var(--c1-soft);     color: var(--c1); }
.badge-ok     { background: var(--ok-soft);     color: var(--ok); }
.badge-warn   { background: var(--warn-soft);   color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info   { background: var(--info-soft);   color: var(--info); }
.badge-gray   { background: var(--surface2);    color: var(--ink2); }
.badge-grad   { background: var(--grad); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 11px 14px; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border-bottom: 1px solid var(--border); background: var(--surface2);
  white-space: nowrap;
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface2); }
.table tbody tr:last-child td { border-bottom: none; }

/* ── Stat cards ─────────────────────────────────────────────── */
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px 20px; box-shadow: var(--sh-sm); position: relative; overflow: hidden;
}
.stat .stat-label { font-size: 12.5px; font-weight: 600; color: var(--ink2); display: flex; align-items: center; gap: 7px; }
.stat .stat-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; font-family: var(--font-display); }
.stat .stat-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stat .stat-trend-up { color: var(--ok); font-weight: 700; }
.stat .stat-trend-down { color: var(--danger); font-weight: 700; }
.stat-icon {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; background: var(--c1-soft);
}

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px; padding: 4px; background: var(--surface2);
  border-radius: var(--r-md); width: max-content; max-width: 100%; overflow-x: auto;
}
.tabs .tab {
  padding: 7px 16px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600;
  color: var(--ink2); cursor: pointer; border: none; background: transparent;
  white-space: nowrap; transition: .15s; text-decoration: none !important;
}
.tabs .tab:hover { color: var(--ink); }
.tabs .tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1.5px solid var(--border2); color: var(--ink2);
  cursor: pointer; transition: .15s; text-decoration: none !important;
}
.pill:hover { border-color: var(--c1); color: var(--c1); }
.pill.active { background: var(--c1); border-color: var(--c1); color: #fff; }

/* ── Progress ───────────────────────────────────────────────── */
.progress { height: 8px; background: var(--surface3); border-radius: 100px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 100px; transition: width .4s ease; }

/* ── Alerts / flash ─────────────────────────────────────────── */
.alert {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px;
  border-radius: var(--r-md); font-size: 14px; margin-bottom: 18px; border: 1px solid;
}
.alert-ok     { background: var(--ok-soft);     color: var(--ok);     border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert-warn   { background: var(--warn-soft);   color: var(--warn);   border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-info   { background: var(--info-soft);   color: var(--info);   border-color: color-mix(in srgb, var(--info) 25%, transparent); }

/* ── Toasts ─────────────────────────────────────────────────── */
#toasts { position: fixed; bottom: 22px; right: 22px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: var(--page); padding: 12px 18px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; box-shadow: var(--sh-pop); display: flex; gap: 9px;
  align-items: center; animation: toastIn .25s ease; max-width: 360px;
}
.toast.ok::before { content: "✓"; color: #4ade80; font-weight: 800; }
.toast.err::before { content: "✕"; color: #f87171; font-weight: 800; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ── Modals ─────────────────────────────────────────────────── */
.modal-back {
  position: fixed; inset: 0; background: rgba(9, 12, 22, .6); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-back.open { display: flex; animation: fadeIn .18s ease; }
.modal {
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-pop);
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  animation: popIn .22s cubic-bezier(.2, 1.4, .4, 1);
}
.modal-lg { max-width: 720px; }
.modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 0; }
.modal-bd { padding: 18px 24px 24px; }
.modal-x {
  border: none; background: var(--surface2); color: var(--ink2); width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1;
}
.modal-x:hover { background: var(--danger-soft); color: var(--danger); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.95) translateY(8px); } }

/* ── Dropdown ───────────────────────────────────────────────── */
.dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 190px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-pop); padding: 6px; z-index: 500; display: none;
}
.dd.open .dd-menu { display: block; animation: popIn .16s ease; }
.dd-item {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px;
  border-radius: var(--r-sm); font-size: 13.5px; font-weight: 500; color: var(--ink);
  cursor: pointer; border: none; background: none; text-align: left; text-decoration: none !important;
}
.dd-item:hover { background: var(--surface2); }
.dd-item.danger { color: var(--danger); }
.dd-sep { height: 1px; background: var(--border); margin: 5px 4px; }

/* ── Empty state ────────────────────────────────────────────── */
.empty { text-align: center; padding: 56px 24px; }
.empty .empty-icon { font-size: 44px; margin-bottom: 12px; }
.empty h3 { color: var(--ink); }
.empty p { color: var(--ink2); max-width: 380px; margin: 0 auto 18px; }

/* ── Skeleton ───────────────────────────────────────────────── */
.skel {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%; animation: skel 1.4s infinite; border-radius: var(--r-sm);
}
@keyframes skel { to { background-position: -200% 0; } }

/* ── Avatar ─────────────────────────────────────────────────── */
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  font-size: 14px; flex: 0 0 auto; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }

/* ── Tooltip ────────────────────────────────────────────────── */
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 7px); left: 50%;
  transform: translateX(-50%); background: var(--ink); color: var(--page);
  padding: 5px 10px; border-radius: 7px; font-size: 12px; font-weight: 500;
  white-space: nowrap; z-index: 900; pointer-events: none;
}

/* ============================================================
   App shell — sidebar + topbar
   ============================================================ */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--surface); border-right: 1px solid var(--border);
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 1000;
  display: flex; flex-direction: column; transition: transform .22s ease;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink);
  text-decoration: none !important; letter-spacing: -.02em;
}
.sidebar .brand .logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px;
  box-shadow: var(--sh-md);
}
.sidebar nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.nav-group { margin-bottom: 14px; }
.nav-group .nav-title {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); padding: 8px 10px 5px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; margin-bottom: 2px;
  border-radius: var(--r-md); font-size: 14px; font-weight: 500; color: var(--ink2);
  text-decoration: none !important; transition: .13s; position: relative;
}
.nav-item .ni { font-size: 16.5px; width: 20px; text-align: center; }
.nav-item:hover { background: var(--surface2); color: var(--ink); }
.nav-item.active { background: var(--c1-soft); color: var(--c1); font-weight: 600; }
.nav-item.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3.5px;
  background: var(--c1); border-radius: 0 4px 4px 0;
}
.nav-item .nav-count {
  margin-left: auto; background: var(--danger); color: #fff; font-size: 10.5px;
  font-weight: 700; min-width: 18px; height: 18px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.sidebar .side-foot { padding: 12px; border-top: 1px solid var(--border); }

/* Upgrade card in sidebar */
.upgrade-card {
  background: var(--grad); border-radius: var(--r-lg); padding: 15px; color: #fff;
  margin: 8px 0;
}
.upgrade-card h4 { margin: 0 0 4px; font-size: 14px; color: #fff; }
.upgrade-card p { font-size: 12px; opacity: .85; margin: 0 0 10px; }
.upgrade-card .btn { background: #fff; color: var(--c1); width: 100%; padding: 8px; font-size: 13px; }

/* Topbar */
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h); background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; padding: 0 26px;
  position: sticky; top: 0; z-index: 900;
}
.topbar .tb-title { font-weight: 700; font-size: 16.5px; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.tb-btn {
  width: 38px; height: 38px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink2); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: .15s;
  position: relative; text-decoration: none !important;
}
.tb-btn:hover { border-color: var(--c1); color: var(--c1); }
.tb-btn .nbadge {
  position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.burger { display: none; }

/* Content area */
.content { padding: 26px; max-width: 1280px; width: 100%; margin: 0 auto; flex: 1; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .ph-sub { color: var(--ink2); font-size: 14px; margin-top: 3px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Grid helpers */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* utility */
.mt0{margin-top:0}.mt1{margin-top:8px}.mt2{margin-top:16px}.mt3{margin-top:24px}.mt4{margin-top:36px}
.mb0{margin-bottom:0}.mb1{margin-bottom:8px}.mb2{margin-bottom:16px}.mb3{margin-bottom:24px}
.muted{color:var(--muted)}.ink2{color:var(--ink2)}.small{font-size:12.5px}.big{font-size:17px}
.bold{font-weight:700}.center{text-align:center}.right{text-align:right}
.hide{display:none!important}
.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── Property card (library grid) ───────────────────────────── */
.prop-card { overflow: hidden; display: flex; flex-direction: column; }
.prop-card .pc-img { position: relative; aspect-ratio: 16/10; background: var(--surface3); overflow: hidden; }
.prop-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.prop-card:hover .pc-img img { transform: scale(1.05); }
.prop-card .pc-price {
  position: absolute; left: 12px; bottom: 12px; background: rgba(9, 12, 22, .78);
  color: #fff; padding: 5px 12px; border-radius: 9px; font-weight: 700; font-size: 14.5px;
  backdrop-filter: blur(4px);
}
.prop-card .pc-status { position: absolute; top: 12px; left: 12px; }
.prop-card .pc-bd { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.prop-card .pc-meta { display: flex; gap: 12px; color: var(--ink2); font-size: 12.5px; flex-wrap: wrap; }

/* ── DPE badges ─────────────────────────────────────────────── */
.dpe { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; font-weight: 800; font-size: 13px; color: #fff; }
.dpe-A{background:#019240}.dpe-B{background:#52b153}.dpe-C{background:#a5cc74}.dpe-D{background:#f4e70f;color:#5f5a00}
.dpe-E{background:#f0b50f}.dpe-F{background:#eb8235}.dpe-G{background:#d7221f}

/* ── Auth pages (login/register) ────────────────────────────── */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-side {
  flex: 1; background: var(--grad); color: #fff; padding: 48px; display: none;
  flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.auth-side::after {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: rgba(255, 255, 255, .07); bottom: -160px; right: -160px;
}
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 34px 22px; }
.auth-box { width: 100%; max-width: 420px; }
@media (min-width: 960px) { .auth-side { display: flex; } }

/* ── Wizard steps ───────────────────────────────────────────── */
.steps { display: flex; gap: 6px; margin-bottom: 24px; }
.step-dot {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.step-dot i { width: 100%; height: 4px; border-radius: 4px; background: var(--surface3); font-style: normal; }
.step-dot.done i, .step-dot.active i { background: var(--c1); }
.step-dot.active { color: var(--c1); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-105%); box-shadow: var(--sh-pop); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .burger { display: flex; }
  .content { padding: 18px 14px 90px; }
  .topbar { padding: 0 14px; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .page-head { flex-direction: column; }
  .stat .stat-value { font-size: 24px; }
}

/* Mobile bottom nav */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--muted); text-decoration: none !important;
  padding: 5px 2px; border-radius: 10px;
}
.bottom-nav a .bn-ico { font-size: 19px; line-height: 1; }
.bottom-nav a.active { color: var(--c1); }
.bottom-nav a.bn-fab .bn-ico {
  width: 44px; height: 44px; background: var(--grad); border-radius: 14px; color: #fff;
  display: flex; align-items: center; justify-content: center; margin-top: -18px;
  box-shadow: var(--sh-lg); font-size: 22px;
}
@media (max-width: 900px) { .bottom-nav { display: flex; } }

/* Sidebar overlay on mobile */
.side-overlay { position: fixed; inset: 0; background: rgba(9,12,22,.45); z-index: 990; display: none; }
.side-overlay.show { display: block; }

/* print */
@media print { .sidebar, .topbar, .bottom-nav, .page-actions { display: none !important; } .main { margin: 0; } }
