:root {
  --ink: #18211f;
  --muted: #68716d;
  --soft: #eef4f1;
  --line: #d8e1dc;
  --accent: #276c5d;
  --accent-2: #c46b38;
  --accent-3: #315f9f;
  --paper: #fbfcfb;
  --shadow: 0 16px 44px rgba(24, 33, 31, 0.08);
  --shadow-strong: 0 24px 70px rgba(24, 33, 31, 0.14);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.dashboard-live-changed {
  animation: dashboard-live-background 1.2s ease-in-out infinite;
}

body.dashboard-live-changed .dashboard-panel,
body.dashboard-live-changed .portal-card {
  animation: dashboard-live-panel 1.2s ease-in-out infinite;
}

@keyframes dashboard-live-background {
  0%,
  100% {
    background: var(--paper);
  }
  50% {
    background: #fff6d8;
  }
}

@keyframes dashboard-live-panel {
  0%,
  100% {
    box-shadow: var(--shadow);
    border-color: var(--line);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.22), var(--shadow);
    border-color: #ffc107;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  min-height: 72px;
}

.navbar-portal {
  border-bottom: 1px solid rgba(216, 225, 220, 0.86);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(24, 33, 31, 0.05);
}

.navbar-brand {
  letter-spacing: 0;
  white-space: nowrap;
}

.navbar-collapse {
  min-width: 0;
}

.navbar-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 6px;
}

.navbar .nav-link,
.btn-menu,
.dropdown-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.navbar .nav-link {
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 750;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--ink);
  background: var(--soft);
}

.navbar .nav-link:hover {
  transform: translateY(-1px);
}

.admin-menu {
  min-width: 230px;
  max-height: min(72vh, 520px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-menu .dropdown-item {
  min-height: 40px;
  color: var(--ink);
  font-weight: 700;
}

.admin-menu .dropdown-item i {
  color: var(--accent);
}

.admin-menu .admin-menu-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 34px;
  margin: 0.25rem 0.35rem 0.1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-menu .admin-menu-group i {
  color: var(--accent);
}

.admin-menu .admin-menu-child {
  min-height: 38px;
  margin-left: 0.55rem;
  padding-left: 1.15rem;
  border-left: 3px solid var(--line);
  font-size: 0.94rem;
  font-weight: 700;
}

.admin-menu .admin-submenu-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
}

.admin-menu .admin-submenu-toggle span {
  flex: 1;
}

.admin-menu .admin-submenu-caret {
  margin-left: auto;
  font-size: 0.8rem;
  transition: transform 0.18s ease;
}

.admin-menu .admin-submenu-toggle[aria-expanded="true"] .admin-submenu-caret {
  transform: rotate(180deg);
}

.admin-menu .admin-submenu-menu {
  margin: 0.1rem 0 0.35rem;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px rgba(39, 108, 93, 0.22);
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.brand-logo-default {
  border: 0;
  background: transparent;
  box-shadow: 0 10px 24px rgba(39, 108, 93, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 78px;
  background:
    linear-gradient(rgba(24, 33, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 33, 31, 0.035) 1px, transparent 1px),
    linear-gradient(120deg, rgba(248, 251, 250, 0.95) 0%, rgba(234, 244, 240, 0.92) 62%, rgba(196, 107, 56, 0.1) 100%),
    var(--soft);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: 0;
}

.hero h1.hero-title-sm {
  max-width: 700px;
  font-size: 4px;
  line-height: 1.45;
}

.hero-xordigital-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hero-brand-copy {
  display: grid;
  gap: 0.15rem;
}

.hero-brand-title,
.hero-brand-subtitle {
  display: block;
  letter-spacing: 0;
}

.hero-brand-title {
  color: #0f3b5e;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.05;
}

.hero-brand-subtitle {
  color: #315f9f;
  font-size: clamp(0.82rem, 1.25vw, 1.02rem);
  font-weight: 750;
  line-height: 1.25;
}

.section-pad {
  padding: 64px 0;
}

.customer-demo-section {
  background:
    linear-gradient(135deg, rgba(49, 95, 159, 0.08), rgba(39, 108, 93, 0.08)),
    #fff;
}

.demo-showcase {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 193, 7, 0.2), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f6fbf9 54%, #eef4f1 100%);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow-strong);
}

.demo-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  font-size: 0.85rem;
  font-weight: 850;
}

.demo-action-row,
.demo-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 750;
}

.demo-proof-row strong {
  color: var(--ink);
}

.demo-screen {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(24, 33, 31, 0.18);
}

.demo-screen-top {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.demo-screen-top div {
  display: flex;
  gap: 7px;
}

.demo-screen-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c46b38;
}

.demo-screen-top span:nth-child(2) {
  background: #ffc107;
}

.demo-screen-top span:nth-child(3) {
  background: #198754;
}

.demo-screen-top strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.demo-screen-top em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.demo-screen-body {
  padding: 18px;
}

.demo-preview-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 24px;
  box-shadow: var(--shadow-strong);
}

.demo-tabs {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.demo-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  border-radius: 8px;
}

.demo-tabs .nav-link.active {
  background: var(--ink);
  color: #fff;
}

.demo-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.demo-metric {
  display: flex;
  gap: 14px;
  min-height: 126px;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(24, 33, 31, 0.14);
}

.demo-metric-primary { background: linear-gradient(135deg, #0d6efd, #315f9f); }
.demo-metric-danger { background: linear-gradient(135deg, #dc3545, #9c2330); }
.demo-metric-success { background: linear-gradient(135deg, #198754, #276c5d); }
.demo-metric-dark { background: linear-gradient(135deg, #18211f, #2f4540); }

.demo-metric i {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.35rem;
}

.demo-metric span,
.demo-metric small,
.demo-metric strong {
  display: block;
}

.demo-metric span {
  font-size: 0.88rem;
  font-weight: 800;
}

.demo-metric strong {
  font-size: 2.1rem;
  line-height: 1.1;
}

.demo-metric small {
  max-width: 170px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 750;
}

.demo-table-wrap,
.demo-pie-panel,
.demo-registration-preview,
.demo-flow-panel,
.demo-ticket-card,
.demo-parking-board,
.demo-callout,
.demo-resident-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}

.demo-pie {
  position: relative;
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background: conic-gradient(#198754 0deg 81deg, #ffc107 81deg 135deg, #dc3545 135deg 147deg, #0d6efd 147deg 360deg);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 18px 36px rgba(15, 23, 42, 0.16);
}

.demo-pie-center {
  position: absolute;
  inset: 25%;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.demo-pie-center strong,
.demo-pie-center span {
  display: block;
}

.demo-pie-center strong {
  color: var(--ink);
  font-size: 2.6rem;
  line-height: 1;
}

.demo-pie-center span,
.demo-pie-legend span {
  color: var(--muted);
  font-weight: 800;
}

.demo-pie-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.demo-pie-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.demo-pie-legend i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.demo-resident-tile {
  min-height: 190px;
}

.demo-resident-tile i {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent);
  font-size: 1.35rem;
}

.demo-resident-tile strong,
.demo-resident-tile span {
  display: block;
}

.demo-resident-tile strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.1rem;
}

.demo-resident-tile span {
  color: var(--muted);
  font-weight: 700;
}

.demo-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.demo-flow::before {
  position: absolute;
  top: 38px;
  left: 8%;
  right: 8%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #0d6efd, #ffc107, #198754, #6f42c1, #dc3545);
  opacity: 0.32;
}

.demo-flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.demo-flow-step > span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
}

.demo-flow-step i {
  color: var(--ink);
  font-size: 1.6rem;
}

.demo-flow-step strong,
.demo-flow-step small {
  display: block;
}

.demo-flow-step strong {
  color: var(--ink);
  line-height: 1.2;
}

.demo-flow-step small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.demo-flow-blue > span { background: #0d6efd; }
.demo-flow-gold > span { background: #ffc107; color: #18211f; }
.demo-flow-green > span { background: #198754; }
.demo-flow-purple > span { background: #6f42c1; }
.demo-flow-red > span { background: #dc3545; }

.demo-ticket-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.demo-trail-list {
  display: grid;
  gap: 12px;
}

.demo-trail-list > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.demo-trail-list strong,
.demo-trail-list small {
  display: block;
}

.demo-trail-list small {
  color: var(--muted);
  font-weight: 700;
}

.demo-parking-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-parking-tiles .btn {
  font-weight: 800;
}

.demo-callout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #18211f, #276c5d);
  color: #fff;
}

.demo-callout > i {
  margin-bottom: 16px;
  color: #ffc107;
  font-size: 2.4rem;
}

.demo-callout p {
  color: rgba(255, 255, 255, 0.78);
}

.portal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-control,
.form-select,
.btn {
  border-radius: 8px;
}

.btn-dark {
  border-color: var(--ink);
  background: linear-gradient(135deg, var(--ink), #263d39);
  box-shadow: 0 12px 24px rgba(24, 33, 31, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-outline-dark {
  border-color: rgba(24, 33, 31, 0.22);
  background: rgba(255, 255, 255, 0.64);
}

.btn-outline-dark:hover {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 12px 24px rgba(24, 33, 31, 0.12);
}

.btn-hero {
  min-height: 52px;
  padding-inline: 22px;
}

.mini-stat {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mini-stat strong,
.mini-stat span {
  display: block;
}

.mini-stat strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.stat {
  display: block;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.copyright-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 800;
}

.portal-graphic {
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(216, 225, 220, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 244, 241, 0.92)),
    #fff;
  box-shadow: var(--shadow-strong);
}

.portal-graphic::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(49, 95, 159, 0.08) 20% 21%, transparent 21% 100%),
    linear-gradient(180deg, transparent 0 26%, rgba(39, 108, 93, 0.08) 26% 27%, transparent 27% 100%);
  pointer-events: none;
}

.graphic-topbar,
.graphic-header,
.graphic-grid,
.graphic-progress,
.copyright-pill {
  position: relative;
  z-index: 1;
}

.graphic-topbar {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.graphic-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.graphic-topbar span:first-child {
  background: var(--accent-2);
}

.graphic-topbar span:nth-child(2) {
  background: var(--accent);
}

.graphic-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 6px 22px;
}

.graphic-badge {
  display: inline-grid;
  min-width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border-radius: 8px;
  font-size: 1.35rem;
  box-shadow: 0 14px 26px rgba(39, 108, 93, 0.22);
}

.graphic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.graphic-tile {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(216, 225, 220, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.graphic-tile.primary {
  background: linear-gradient(135deg, rgba(39, 108, 93, 0.96), rgba(49, 95, 159, 0.94));
  color: #fff;
}

.graphic-tile i {
  color: var(--accent);
  font-size: 1.45rem;
}

.graphic-tile.primary i,
.graphic-tile.primary span {
  color: rgba(255, 255, 255, 0.82);
}

.graphic-tile strong {
  line-height: 1.2;
}

.graphic-tile span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.graphic-progress {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 15px;
  border: 1px solid rgba(216, 225, 220, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.graphic-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.graphic-progress strong {
  color: var(--ink);
}

.graphic-progress .progress {
  height: 9px;
  background: var(--soft);
  border-radius: 999px;
}

.graphic-progress .progress-bar {
  width: 92%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.feature-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card > i {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border-radius: 8px;
  font-size: 1.25rem;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(39, 108, 93, 0.34);
  box-shadow: var(--shadow-strong);
}

.portal-band {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(24, 33, 31, 0.96), rgba(39, 108, 93, 0.94)),
    var(--ink);
}

.workflow-step {
  min-height: 172px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.workflow-step strong,
.workflow-step p {
  display: block;
}

.workflow-step strong {
  margin-top: 14px;
  font-size: 1.1rem;
}

.workflow-step p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.notice-card {
  border-left: 5px solid var(--accent);
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.contact-chip i {
  color: var(--accent);
  font-size: 1.15rem;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.permission-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

.permission-check span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.permission-check i {
  color: var(--accent);
}

.rbac-form .form-select-sm,
.rbac-form .btn-sm {
  min-height: 38px;
}

.dashboard-role-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 760px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(24, 33, 31, 0.08);
}

.dashboard-role-summary .stat {
  margin: 0;
}

.dashboard-role-summary strong {
  color: var(--ink);
}

.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.dashboard-filter {
  display: grid;
  grid-template-columns: minmax(145px, auto) minmax(145px, auto) minmax(220px, 1fr) auto;
  gap: 10px;
  min-width: min(100%, 760px);
  margin-left: auto;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  justify-content: center;
  margin-inline: auto;
}

.dashboard-stat-card {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  min-height: 126px;
  padding: 18px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(24, 33, 31, 0.14);
  text-decoration: none;
  text-align: left;
  transition: transform 170ms ease, box-shadow 170ms ease, filter 170ms ease;
}

.dashboard-stat-card > div {
  min-width: 0;
}

.dashboard-stat-card:hover,
.dashboard-stat-card:focus {
  filter: saturate(1.08);
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(24, 33, 31, 0.2);
}

.dashboard-stat-card i {
  display: inline-grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1.35rem;
}

.dashboard-stat-card .stat-title {
  display: block;
  min-height: 22px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.dashboard-stat-card .stat-breakdown {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 5px;
  margin-top: 5px;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: left;
}

.dashboard-stat-card .stat-breakdown i {
  display: inline;
  min-width: auto;
  width: auto;
  height: auto;
  margin-top: 2px;
  place-items: initial;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 0.68rem;
  line-height: 1;
}

.dashboard-stat-card .stat-badge {
  display: inline;
  min-height: 0;
  padding: 3px 5px;
  font-size: 0.62rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  white-space: normal;
  line-height: 1.25;
  text-align: left;
  vertical-align: middle;
}

.dashboard-stat-card strong {
  display: block;
  font-size: 2.25rem;
  line-height: 1;
}

.dashboard-stat-card small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 850;
}

.dashboard-stat-card small i {
  display: inline;
  min-width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  font-size: 0.9rem;
}

.people-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  justify-content: center;
  margin-inline: auto;
}

.people-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  min-height: 76px;
  text-align: left;
}

.people-result-card strong,
.people-result-card span {
  display: block;
}

.people-result-card span {
  color: currentColor;
  opacity: 0.82;
  font-size: 0.9rem;
}

.people-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.people-meta .badge {
  opacity: 1;
}

.people-result-card i {
  color: currentColor;
}

.person-record {
  padding: 18px;
  border: 1px solid rgba(39, 108, 93, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 244, 241, 0.78), rgba(255, 255, 255, 0.96));
}

.record-item {
  align-items: center;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.record-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #495057;
  background: var(--bs-light);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.record-value {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.table {
  --bs-table-bg: transparent;
}

.badge {
  border-radius: 8px;
}

.site-footer {
  margin-top: 56px;
  padding: 0;
  color: var(--footer-text, #fff);
  background: var(--footer-bg, #000);
  border-top: 4px solid var(--footer-accent, var(--bs-secondary));
  font-family: var(--footer-font, inherit);
}

.footer-main-row {
  border-top: 1px solid color-mix(in srgb, var(--footer-text, #fff) 24%, transparent);
}

.site-footer .badge {
  color: #000;
}

.footer-brand {
  margin: 0 0 8px;
  color: var(--footer-text, #fff);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 850;
}

.footer-address,
.footer-muted {
  color: color-mix(in srgb, var(--footer-text, #fff) 78%, transparent);
}

.footer-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 520px;
  margin-left: auto;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--footer-text, #fff);
  background: color-mix(in srgb, var(--footer-text, #fff) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--footer-text, #fff) 22%, transparent);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.footer-pill:hover,
.footer-pill:focus {
  color: var(--footer-text, #fff);
  background: color-mix(in srgb, var(--footer-text, #fff) 16%, transparent);
  border-color: color-mix(in srgb, var(--footer-text, #fff) 38%, transparent);
  transform: translateY(-1px);
}

.footer-contact i {
  color: var(--footer-accent, var(--bs-info));
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0 18px;
  color: color-mix(in srgb, var(--footer-text, #fff) 82%, transparent);
  font-size: 0.9rem;
}

.home-live-widget {
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 35px rgba(15, 43, 64, 0.08);
  padding: 1rem;
}

.home-brand-time {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.home-brand-time-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.home-brand-time-kicker,
.home-brand-time strong {
  display: block;
  letter-spacing: 0;
  line-height: 1.15;
}

.home-brand-time-kicker {
  color: #0f3b5e;
  font-size: 0.88rem;
  font-weight: 800;
}

.home-brand-time strong {
  color: #0f2b40;
  font-size: 1rem;
}

.home-live-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.home-live-label,
.home-clock-date,
.home-weather-summary,
.home-weather-meta span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
}

.home-clock-time,
.home-weather-temp {
  display: block;
  color: #0f2b40;
  font-size: 1.35rem;
  line-height: 1.1;
}

.home-weather-meta {
  border-left: 1px solid #e2e8f0;
  padding-left: 1rem;
}

.building-showcase {
  position: relative;
}

.building-showcase-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: var(--soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.building-image-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.building-image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eef4f1;
}

.building-image-card > div {
  padding: 1.25rem;
}

.building-image-card h3 {
  color: var(--ink);
}

@media (max-width: 767.98px) {
  .hero {
    padding: 64px 0;
  }

  .portal-card {
    padding: 20px;
  }

  .graphic-grid {
    grid-template-columns: 1fr;
  }

  .navbar .nav-link,
  .btn-menu,
  .dropdown-item {
    width: 100%;
    justify-content: flex-start;
  }

  .navbar-nav {
    align-items: stretch;
    justify-content: flex-start;
  }

  .admin-menu {
    max-height: none;
    border: 0;
    box-shadow: none;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-filter,
  .dashboard-stat-grid,
  .people-results {
    grid-template-columns: 1fr;
  }

  .demo-flow {
    grid-template-columns: 1fr;
  }

  .demo-flow::before {
    display: none;
  }

  .record-label {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-contact {
    max-width: none;
    margin-left: 0;
  }

  .home-weather-meta {
    border-left: 0;
    border-top: 1px solid #e2e8f0;
    padding-left: 0;
    padding-top: 0.75rem;
    text-align: left !important;
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .dashboard-stat-grid,
  .people-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-flow::before {
    display: none;
  }
}
