:root {
  --bg: #0f172a;
  --card: rgba(255,255,255,0.78);
  --card-dark: rgba(15,23,42,0.78);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --ring: rgba(37,99,235,.18);
}
html[data-theme="dark"] body { background: linear-gradient(135deg,#020617,#0f172a 32%,#111827 100%); color: #e2e8f0; }
html[data-theme="light"] body { background: linear-gradient(135deg,#eff6ff,#f8fafc 30%,#eef2ff 100%); color: #0f172a; }
body { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; min-height: 100vh; }
.sidebar-glass,.glass-card,.topbar-glass { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 15px 50px rgba(2, 6, 23, .12); }
html[data-theme="light"] .sidebar-glass, html[data-theme="light"] .glass-card, html[data-theme="light"] .topbar-glass { background: rgba(255,255,255,.72); }
html[data-theme="dark"] .sidebar-glass, html[data-theme="dark"] .glass-card, html[data-theme="dark"] .topbar-glass { background: rgba(15,23,42,.68); }
.sidebar-glass { min-height: calc(100vh - 32px); border-radius: 28px; }
.brand-badge { width: 46px; height: 46px; border-radius: 16px; background: linear-gradient(135deg,#3b82f6,#8b5cf6); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow: 0 12px 24px rgba(59,130,246,.28); }
.metric-card { position: relative; overflow: hidden; }
.metric-card:after { content:""; position:absolute; inset:auto -30px -30px auto; width:120px; height:120px; background: radial-gradient(circle, rgba(59,130,246,.22), transparent 70%); }
.sidebar-link { display:flex; align-items:center; gap:12px; border-radius:16px; padding:12px 14px; color: inherit; text-decoration:none; transition: all .25s ease; }
.sidebar-link:hover,.sidebar-link.active { background: linear-gradient(135deg, rgba(59,130,246,.16), rgba(139,92,246,.12)); transform: translateX(4px); }
.section-title { font-weight: 800; letter-spacing: -.02em; }
.table-wrap { border-radius: 24px; overflow: hidden; }
.dataTables_wrapper .dataTables_filter { display:none; }
.filters-row input,.filters-row select { width:100%; min-width:120px; border-radius:12px; border:1px solid rgba(148,163,184,.3); padding:8px 10px; background: rgba(255,255,255,.65); }
html[data-theme="dark"] .filters-row input, html[data-theme="dark"] .filters-row select { background: rgba(15,23,42,.6); color:#e2e8f0; }
.form-card .form-control,.form-card .form-select { min-height: 46px; border-radius: 14px; }
.btn-premium { background: linear-gradient(135deg,#2563eb,#7c3aed); color:#fff; border:none; border-radius: 14px; box-shadow: 0 10px 24px rgba(37,99,235,.24); }
.btn-soft { border-radius: 14px; border:1px solid rgba(148,163,184,.24); background: rgba(255,255,255,.6); }
html[data-theme="dark"] .btn-soft { background: rgba(15,23,42,.52); color:#e2e8f0; }
.select2-container--bootstrap-5 .select2-selection { min-height:46px; border-radius:14px !important; }
.note-chip { width: 16px; height:16px; display:inline-block; border-radius:999px; }
.mobile-hero { border-radius: 28px; overflow:hidden; }
@media (max-width: 991.98px) {
  .sidebar-glass { min-height: auto; }
}

.modal-content{background:rgba(255,255,255,.94)}
html[data-theme="dark"] .modal-content{background:rgba(15,23,42,.96);color:#e2e8f0}
.resident-mobile-shell .glass-card{box-shadow:none}
