:root {
  --app-bg: #f6f9ff;
  --app-panel: #ffffff;
  --app-ink: #0c1f3f;
  --app-muted: #64748b;
  --app-line: rgba(12, 31, 63, .12);
  --app-soft: #f8fbff;
  --app-primary: #f05a28;
  --app-primary-dark: #cf4318;
  --app-blue: #123267;
  --app-blue-dark: #0d2754;
  --app-blue-soft: #e8f1ff;
  --app-blue-faint: #f8fbff;
  --app-accent: #f05a28;
  --app-danger: #b91c1c;
  --app-success: #15803d;
  --app-warning: #b45309;
  --app-shadow: 0 24px 70px rgba(12, 31, 63, .14);
  --app-shadow-soft: 0 14px 38px rgba(12, 31, 63, .09);
}

body {
  background: var(--app-bg) !important;
  color: var(--app-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  min-height: 100vh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: var(--app-primary-dark);
  text-decoration: none;
}

a:hover {
  color: var(--app-primary);
}

img,
svg,
canvas {
  max-width: 100%;
}

/* Local Bootstrap-compatible fallback. The app still links Bootstrap CDN, but
   these rules keep every page usable when the CDN stylesheet is unavailable. */
.container,
.container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.container {
  width: min(1500px, calc(100% - 32px));
  max-width: none;
}

.container-fluid {
  padding-right: var(--bs-gutter-x, .75rem);
  padding-left: var(--bs-gutter-x, .75rem);
}

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-.5 * var(--bs-gutter-x));
  margin-left: calc(-.5 * var(--bs-gutter-x));
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
  margin-top: var(--bs-gutter-y);
}

.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.col-12 {
  flex: 0 0 auto;
  width: 100%;
}

.col-6 {
  flex: 0 0 auto;
  width: 50%;
}

@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .col-lg-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }

  .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .col-lg-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }

  .flex-lg-row {
    flex-direction: row !important;
  }

  .align-items-lg-center {
    align-items: center !important;
  }

  .mt-lg-0 {
    margin-top: 0 !important;
  }

  .p-lg-5 {
    padding: 3rem !important;
  }
}

@media (min-width: 1200px) {
  .col-xl-1 {
    flex: 0 0 auto;
    width: 8.33333333%;
  }

  .col-xl-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  .col-xl-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .col-xl-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
}

.d-flex {
  display: flex !important;
}

.d-block {
  display: block !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

.gap-2 {
  gap: .5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.m-0 {
  margin: 0 !important;
}

.mt-2 {
  margin-top: .5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.my-4 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: .25rem !important;
}

.mb-2 {
  margin-bottom: .5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.ms-auto {
  margin-left: auto !important;
}

.me-2 {
  margin-right: .5rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.px-1 {
  padding-right: .25rem !important;
  padding-left: .25rem !important;
}

.px-3 {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
}

.py-2 {
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.h-100 {
  height: 100% !important;
}

.text-muted {
  color: var(--app-muted) !important;
}

.text-dark {
  color: var(--app-ink) !important;
}

.text-danger {
  color: var(--app-danger) !important;
}

.text-success {
  color: var(--app-success) !important;
}

.text-capitalize {
  text-transform: capitalize !important;
}

.fw-semibold {
  font-weight: 700 !important;
}

.fw-bold {
  font-weight: 900 !important;
}

.small {
  font-size: .875em !important;
}

.bg-white {
  background: #ffffff !important;
}

.bg-light {
  background: var(--app-soft) !important;
}

.bg-dark {
  background: var(--app-ink) !important;
  color: #ffffff !important;
}

.bg-secondary {
  background: #64748b !important;
  color: #ffffff !important;
}

.bg-success {
  background: var(--app-success) !important;
  color: #ffffff !important;
}

.bg-primary-subtle {
  background: var(--app-blue-soft) !important;
}

.border {
  border: 1px solid var(--app-line) !important;
}

.border-0 {
  border: 0 !important;
}

.border-start {
  border-left: 1px solid var(--app-line) !important;
}

.border-4 {
  border-width: 4px !important;
}

.border-danger {
  border-color: var(--app-danger) !important;
}

.border-success {
  border-color: var(--app-success) !important;
}

.rounded-pill {
  border-radius: 999px !important;
}

.shadow {
  box-shadow: var(--app-shadow-soft) !important;
}

.opacity-75 {
  opacity: .75 !important;
}

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.navbar > .container-fluid {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  padding-top: .3125rem;
  padding-bottom: .3125rem;
  margin-right: 1rem;
  color: var(--app-ink);
  white-space: nowrap;
}

.navbar-toggler {
  padding: .45rem .75rem;
  font-size: 1.1rem;
  line-height: 1;
  background: transparent;
  border: 1px solid var(--app-line);
  border-radius: 8px;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  vertical-align: middle;
  background-image: linear-gradient(var(--app-ink), var(--app-ink));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.25em 2px;
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: .05em;
  width: 1.25em;
  height: 2px;
  background: var(--app-ink);
}

.navbar-toggler-icon::before {
  top: .34em;
}

.navbar-toggler-icon::after {
  bottom: .34em;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.collapse:not(.show) {
  display: none;
}

.app-navbar .navbar-collapse {
  display: flex;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background: #ffffff;
  background-clip: border-box;
}

.card-body {
  flex: 1 1 auto;
  padding: 1rem;
}

.badge {
  display: inline-block;
  padding: .35em .65em;
  font-size: .75em;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .55rem .9rem;
  border: 1px solid transparent;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}

.btn-sm {
  padding: .35rem .65rem;
  font-size: .875rem;
}

.btn-lg {
  padding: .75rem 1.1rem;
  font-size: 1.05rem;
}

.btn-outline-secondary {
  border-color: rgba(93, 113, 139, .35) !important;
  color: #48627f !important;
}

.btn-outline-secondary:hover {
  background: var(--app-blue-soft) !important;
  color: var(--app-primary-dark) !important;
}

.btn-outline-danger {
  border-color: rgba(185, 28, 28, .35) !important;
  color: var(--app-danger) !important;
}

.btn-outline-danger:hover,
.btn-danger {
  background: var(--app-danger) !important;
  border-color: var(--app-danger) !important;
  color: #ffffff !important;
}

.btn-outline-dark {
  border-color: rgba(16, 32, 51, .35) !important;
  color: var(--app-ink) !important;
}

.btn-outline-dark:hover {
  background: var(--app-ink) !important;
  color: #ffffff !important;
}

.btn-outline-success {
  border-color: rgba(21, 128, 61, .35) !important;
  color: var(--app-success) !important;
}

.btn-outline-success:hover {
  background: var(--app-success) !important;
  color: #ffffff !important;
}

.btn-warning {
  background: var(--app-warning) !important;
  border-color: var(--app-warning) !important;
  color: #ffffff !important;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: .625rem .75rem;
  color: var(--app-ink);
  background: #ffffff;
  border: 1px solid var(--app-line);
}

.form-label {
  display: inline-block;
  margin-bottom: .5rem;
  color: var(--app-ink);
  font-weight: 800;
}

.form-text {
  margin-top: .35rem;
  color: var(--app-muted);
  font-size: .875rem;
}

.form-control-lg,
.form-select-lg {
  min-height: 52px;
  padding: .75rem 1rem;
  font-size: 1rem;
}

.alert {
  position: relative;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-blue-faint);
  color: var(--app-ink);
}

.alert-info {
  background: var(--app-blue-soft);
}

.alert-warning {
  background: #fff7ed;
  border-color: rgba(180, 83, 9, .20);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--app-ink);
  border-collapse: collapse;
}

.table th,
.table td {
  padding: .75rem;
  border-bottom: 1px solid var(--app-line);
  vertical-align: middle;
}

.table thead th {
  font-size: .85rem;
  text-transform: uppercase;
}

.align-middle {
  vertical-align: middle !important;
}

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  gap: .35rem;
}

.page-item {
  list-style: none;
}

.page-link {
  display: block;
  padding: .45rem .75rem;
  color: var(--app-primary-dark);
  background: #ffffff;
  border: 1px solid var(--app-line);
  border-radius: 8px;
}

.page-item.active .page-link,
.page-link.active {
  background: var(--app-blue-soft);
  color: var(--app-primary-dark);
  font-weight: 900;
}

.page-item.disabled .page-link,
.page-link.disabled {
  color: var(--app-muted);
  pointer-events: none;
  background: var(--app-blue-faint);
}

.spinner-border,
.spinner-border-sm {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: -.125em;
  border: .18em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: predictionSpin .75s linear infinite;
}

.spinner-border-sm {
  width: .875rem;
  height: .875rem;
  border-width: .14em;
}

.tab-content > .tab-pane {
  display: none;
}

.tab-content > .active {
  display: block;
}

.tab-pane.show {
  display: block;
}

.fade:not(.show) {
  opacity: 0;
}

.fade {
  transition: opacity .15s linear;
}

button,
input,
select,
textarea,
.btn,
.form-control,
.form-select {
  font: inherit;
  letter-spacing: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-title,
.hero-title,
.modern-page-title {
  letter-spacing: 0 !important;
}

.container.py-4,
.container.py-5 {
  width: min(1500px, calc(100% - 32px));
  max-width: none;
}

.hero,
.page-hero {
  border: 1px solid var(--app-line) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #ffffff 0%, var(--app-blue-faint) 100%) !important;
  color: var(--app-ink) !important;
  box-shadow: var(--app-shadow) !important;
}

.hero .badge,
.page-hero .badge {
  background: var(--app-blue-soft) !important;
  color: var(--app-primary-dark) !important;
  border: 1px solid rgba(37, 99, 235, .18);
}

.card,
.card-clean,
.dataset-card,
.result-card,
.filter-card,
.login-card {
  border: 1px solid var(--app-line) !important;
  border-radius: 8px !important;
  box-shadow: var(--app-shadow-soft) !important;
}

.rounded-4,
.rounded-3 {
  border-radius: 8px !important;
}

.form-control,
.form-select {
  border-color: var(--app-line) !important;
  border-radius: 8px !important;
}

.btn {
  border-radius: 8px !important;
  font-weight: 800;
}

.btn-primary,
.btn-success,
.btn-info,
.btn-dark,
.btn-grey {
  border-color: var(--app-primary) !important;
  background: var(--app-primary) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-info:hover,
.btn-dark:hover,
.btn-grey:hover {
  border-color: var(--app-primary-dark) !important;
  background: var(--app-primary-dark) !important;
  color: #ffffff !important;
}

.btn-outline-primary {
  border-color: var(--app-primary) !important;
  color: var(--app-primary) !important;
}

.btn-action {
  min-height: 50px;
  border: 0;
  background: var(--app-primary);
  color: #ffffff;
  font-weight: 900;
  padding-inline: 20px;
}

.btn-action:hover {
  background: var(--app-primary-dark);
  color: #ffffff;
}

.btn-outline-primary:hover {
  background: var(--app-primary) !important;
  color: #ffffff !important;
}

.table thead th,
.field-label,
.info-label {
  color: var(--app-muted) !important;
  letter-spacing: 0 !important;
}

.status-pill,
.status-wahabi,
.status-bukan,
.status-non {
  border-radius: 999px !important;
}

.text-box,
.details-panel,
.mini-card,
.support-item,
.input-card,
.legend-item,
.password-help,
.admin-note {
  border: 1px solid var(--app-line) !important;
  border-radius: 8px !important;
}

.bg-light {
  background: var(--app-soft) !important;
}

.modern-page-title {
  margin-bottom: .35rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1.modern-page-title,
h2.modern-page-title {
  font-size: clamp(1.5rem, 2.1vw, 2.05rem);
  line-height: 1.12;
}

.modern-page-copy {
  color: var(--app-muted);
  line-height: 1.65;
}

.hero {
  padding: 34px;
}

.hero h2 {
  color: var(--app-ink);
}

.hero .badge {
  font-weight: 900;
}

.metric {
  color: var(--app-ink);
  font-size: 2rem;
  font-weight: 900;
}

.chart-card {
  position: relative;
  overflow: visible;
}

.chart-card::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

.chart-card .card-body {
  position: relative;
  z-index: 1;
}

.chart-wrap {
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-wrap canvas {
  display: block;
  max-width: 100%;
}

.legend-list {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .75rem .9rem;
  background: var(--app-blue-faint);
  border: 1px solid var(--app-line);
  border-radius: 8px;
}

.legend-left {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  flex: 0 0 13px;
}

.legend-label {
  font-weight: 800;
  color: var(--app-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legend-value {
  font-weight: 900;
  color: #334155;
}

.empty-chart {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--app-muted);
  background: var(--app-blue-faint);
  border-radius: 8px;
  border: 1px dashed rgba(37, 99, 235, .35);
}

.map-card {
  overflow: hidden;
}

.map-total-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  background: var(--app-blue-faint);
  color: var(--app-primary-dark);
  border: 1px solid rgba(37, 99, 235, .16);
  padding: 8px 14px;
  font-size: .86rem;
  font-weight: 900;
  white-space: nowrap;
}

.malaysia-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  align-items: stretch;
}

.osm-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 8px;
  background: #dceeff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.osm-map-tiles,
.osm-marker-layer {
  position: absolute;
  inset: 0;
}

.osm-map-tiles {
  z-index: 1;
  background: #dbeafe;
}

.osm-map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
}

.osm-marker-layer {
  z-index: 2;
  pointer-events: none;
}

.osm-state-marker {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--marker-scale, 1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--app-primary);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .30);
  cursor: default;
  pointer-events: auto;
  transition: transform .18s ease, box-shadow .18s ease;
}

.osm-state-marker::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(37, 99, 235, .26);
  animation: mapMarkerPulse 2.8s ease-out infinite;
}

.osm-state-marker span {
  position: relative;
  z-index: 1;
  font-size: .72rem;
  font-weight: 900;
}

.osm-state-marker small {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  min-width: max-content;
  border-radius: 999px;
  background: rgba(12, 31, 63, .92);
  color: #ffffff;
  padding: 4px 8px;
  font-size: .64rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, top .18s ease;
}

.osm-state-marker:hover,
.osm-state-marker:focus-visible {
  transform: translate(-50%, -50%) scale(calc(var(--marker-scale, 1) + .18));
  box-shadow: 0 16px 34px rgba(37, 99, 235, .38);
  outline: none;
}

.osm-state-marker:hover small,
.osm-state-marker:focus-visible small {
  top: calc(100% + 10px);
  opacity: 1;
}

.osm-map-controls {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  display: grid;
  gap: 8px;
}

.osm-control-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(12, 31, 63, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  color: var(--app-blue);
  box-shadow: 0 8px 20px rgba(12, 31, 63, .14);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.osm-control-btn:hover,
.osm-control-btn:focus-visible {
  background: var(--app-blue);
  color: #ffffff;
  outline: none;
}

.osm-attribution {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 4;
  border-radius: 6px;
  background: rgba(255, 255, 255, .88);
  color: #334155;
  padding: 4px 8px;
  font-size: .72rem;
  font-weight: 700;
}

.osm-attribution a {
  color: var(--app-blue);
  text-decoration: underline;
}

.state-map-list {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 390px;
  overflow: auto;
  padding-right: 4px;
}

.state-map-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px 14px;
}

.state-map-row strong,
.state-map-row span {
  display: block;
}

.state-map-row strong {
  color: var(--app-ink);
  font-weight: 900;
}

.state-map-row span {
  margin-top: 2px;
  color: var(--app-muted);
  font-size: .82rem;
  font-weight: 700;
}

.state-map-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--app-blue-faint);
  color: var(--app-primary-dark);
  font-weight: 900;
}

.empty-map-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(37, 99, 235, .28);
  border-radius: 8px;
  color: var(--app-muted);
  font-weight: 800;
  text-align: center;
  padding: 18px;
}

@keyframes mapMarkerPulse {
  0% {
    transform: scale(.8);
    opacity: .72;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

@media (max-width: 575.98px) {
  .container.py-4,
  .container.py-5 {
    width: min(100% - 20px, 1180px);
  }
}

.app-navbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--app-line);
  box-shadow: var(--app-shadow-soft);
  border-radius: 8px;
  padding: 12px 16px;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--app-primary);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .20);
}

.brand-title {
  color: var(--app-ink);
  font-weight: 900;
  line-height: 1.05;
}

.brand-subtitle {
  color: var(--app-muted);
  font-size: .78rem;
  font-weight: 600;
}

.modern-nav-link {
  color: #48627f !important;
  border-radius: 8px;
  padding: 10px 16px !important;
  font-weight: 800;
  transition: all .2s ease;
}

.modern-nav-link:hover {
  background: var(--app-blue-soft);
  color: var(--app-primary-dark) !important;
}

.modern-nav-link.active,
.nav-link.active,
.navbar .active,
.menu-link.active,
a.active {
  background: var(--app-blue-soft) !important;
  color: var(--app-primary-dark) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .12) !important;
}

.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}

.logout-btn {
  cursor: pointer;
  background: rgba(220, 38, 38, .08) !important;
  color: #b91c1c !important;
}

.logout-btn:hover {
  background: rgba(220, 38, 38, .14) !important;
  color: #991b1b !important;
}

.page-shell,
.review-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.hero-panel,
.review-hero,
.review-panel,
.panel,
.details-panel,
.result-hero,
.text-box,
.mini-card,
.input-card,
.support-item,
.subject-item {
  border: 1px solid var(--app-line) !important;
  border-radius: 8px !important;
}

.hero-panel,
.review-hero,
.panel,
.review-panel,
.card-clean {
  background: var(--app-panel);
  box-shadow: var(--app-shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: end;
  padding: 30px;
}

.eyebrow,
.review-label,
.support-label {
  color: var(--app-primary);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-title {
  max-width: 860px;
  margin: 8px 0 10px;
  font-weight: 900;
  line-height: 1.04;
  font-size: clamp(2rem, 4vw, 4rem);
}

.hero-copy {
  max-width: 850px;
  color: var(--app-muted);
  line-height: 1.7;
  margin: 0;
}

.pipeline {
  display: grid;
  gap: 10px;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-blue-faint);
  padding: 10px 12px;
  color: #334155;
  font-weight: 800;
  font-size: .9rem;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--app-blue-soft);
  color: var(--app-primary-dark);
  font-size: .78rem;
  flex: 0 0 auto;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(320px, .75fr) minmax(0, 1.35fr);
  gap: 18px;
  margin-top: 18px;
}

.panel-body,
.review-panel {
  padding: 22px;
}

.section-heading {
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-weight: 900;
}

.section-note {
  margin-bottom: 18px;
  color: var(--app-muted);
  line-height: 1.6;
}

textarea.form-control {
  min-height: 170px;
  line-height: 1.6;
}

.nav-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.nav-pills .nav-link {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-blue-faint);
  color: #334155;
  font-weight: 900;
  white-space: normal;
}

.nav-pills .nav-link.active {
  border-color: rgba(37, 99, 235, .40);
  background: var(--app-blue-soft) !important;
  color: var(--app-primary-dark) !important;
  box-shadow: none !important;
}

.input-card {
  padding: 18px;
  background: #ffffff;
}

.support-grid,
.subject-strip {
  display: grid;
  gap: 10px;
}

.support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.support-item,
.subject-item {
  background: var(--app-blue-faint);
  padding: 12px;
  min-height: 88px;
}

.support-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 12px;
}

.support-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-icon-transcription {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, .18);
}

.support-icon-language {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, .20);
}

.support-icon-classifier {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, .22);
}

.support-value,
.subject-value {
  margin-top: 4px;
  color: var(--app-ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.prediction-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 47, 89, .58);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
}

.prediction-loading-overlay.show {
  display: flex;
}

.prediction-loading-card {
  width: min(520px, 100%);
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 47, 89, .28);
  padding: 2.2rem;
  text-align: center;
}

.prediction-loader-ring {
  width: 78px;
  height: 78px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  border: 7px solid #e5effa;
  border-top-color: var(--app-primary);
  border-right-color: var(--app-blue);
  animation: predictionSpin .85s linear infinite;
}

.prediction-loading-title {
  color: var(--app-ink);
  font-weight: 900;
}

.prediction-loading-text {
  color: var(--app-muted);
  line-height: 1.6;
}

.loading-chip {
  display: inline-flex;
  margin: 4px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  background: var(--app-blue-faint);
  color: #334155;
  padding: .45rem .72rem;
  font-size: .8rem;
  font-weight: 800;
}

.btn-loading {
  pointer-events: none;
  opacity: .85;
}

@keyframes predictionSpin {
  to { transform: rotate(360deg); }
}

.review-hero {
  padding: 24px;
  margin-bottom: 18px;
}

.review-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.12;
  font-weight: 900;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.review-text {
  min-height: 360px;
  margin-top: 10px;
  background: var(--app-blue-faint);
  padding: 16px;
  line-height: 1.7;
  white-space: pre-wrap;
}

textarea.review-editor {
  min-height: 360px;
  line-height: 1.7;
  resize: vertical;
}

.subject-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.status-wahabi {
  background: rgba(220, 38, 38, .10);
  color: #b91c1c;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

.status-bukan {
  background: rgba(22, 163, 74, .12);
  color: #15803d;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

.feedback-pill {
  background: var(--app-blue-soft);
  color: var(--app-primary-dark);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

.feedback-pill.accepted {
  background: rgba(22, 163, 74, .12);
  color: #15803d;
}

.feedback-pill.rejected {
  background: rgba(220, 38, 38, .10);
  color: #b91c1c;
}

.text-box {
  white-space: pre-wrap;
  line-height: 1.7;
  background: white;
  padding: 20px;
}

.score-row,
.source-detail-item {
  display: grid;
  gap: 1rem;
  border-bottom: 1px solid rgba(37, 99, 235, .10);
  padding: 12px 0;
  align-items: start;
}

.score-row {
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
}

.source-detail-item {
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
}

.score-row:last-child,
.source-detail-item:last-child {
  border-bottom: 0;
}

.score-label,
.source-detail-label {
  font-weight: 800;
  color: var(--app-ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.score-value,
.source-detail-value {
  color: #334155;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  line-height: 1.55;
}

.score-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: .9rem;
}

.mini-card {
  background: var(--app-blue-faint);
  padding: 20px;
  height: 100%;
}

.summary-card {
  height: 100%;
  min-height: 150px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(12, 31, 63, .08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(12, 31, 63, .08);
}

.summary-card h4 {
  font-size: 1.04rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.summary-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.summary-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-icon-category {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid rgba(249, 115, 22, .22);
}

.summary-icon-status {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, .22);
}

.summary-icon-confidence {
  background: var(--app-blue-faint);
  color: var(--app-primary-dark);
  border: 1px solid rgba(37, 99, 235, .18);
}

.summary-icon-feedback {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, .18);
}

.section-title {
  font-weight: 800;
  margin-bottom: 14px;
}

.details-panel {
  background: white;
  padding: 20px;
  overflow: hidden;
}

.result-hero {
  background: var(--app-blue-faint);
  padding: 22px;
  margin-bottom: 24px;
}

.source-detail-grid {
  display: grid;
  gap: .75rem;
}

.result-list-hero,
.dataset-hero,
.users-hero,
.profile-hero {
  padding: 26px;
}

.page-action-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
}

.page-action-copy {
  min-width: 0;
  max-width: 820px;
}

.page-action-side {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.page-action-side .btn {
  min-width: 170px;
}

.filter-card,
.result-card,
.dataset-card {
  background: #ffffff !important;
}

.filter-card .card-body,
.result-card .card-body,
.dataset-card .card-body {
  position: relative;
}

.result-card,
.dataset-card {
  height: 100%;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.result-card:hover,
.dataset-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, .26) !important;
  box-shadow: 0 18px 45px rgba(37, 99, 235, .13) !important;
}

.result-top {
  padding: 18px 20px;
  background: linear-gradient(180deg, var(--app-blue-faint), #ffffff);
  border-bottom: 1px solid var(--app-line);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .84rem;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.status-non,
.status-verified {
  background: rgba(22, 163, 74, .12);
  color: #15803d;
}

.status-pending {
  background: #fff7ed;
  color: #92400e;
  border: 1px solid rgba(180, 83, 9, .16);
}

.status-rejected {
  background: rgba(220, 38, 38, .10);
  color: #991b1b;
}

.field-label,
.info-label {
  color: var(--app-muted) !important;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.field-value,
.info-value {
  color: var(--app-ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.per-page-select {
  max-width: 160px;
}

.filter-grid {
  align-items: end;
}

.date-range-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .5rem;
  min-width: 0;
}

.date-range-wrap input[type="date"] {
  min-width: 0;
  width: 100%;
}

.filter-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}

.text-preview {
  white-space: pre-wrap;
  line-height: 1.65;
  max-height: 260px;
  overflow: auto;
}

.dataset-card .badge {
  background: var(--app-blue-soft) !important;
  color: var(--app-primary-dark) !important;
  border: 1px solid rgba(37, 99, 235, .16);
}

.dataset-card form {
  margin: 0;
}

.dataset-card .border-danger {
  background: #fff7f7 !important;
}

.dataset-card .border-success {
  background: #f3fff7 !important;
}

.dataset-form textarea,
textarea[name="wahabi_text"],
textarea[name="non_wahabi_text"] {
  min-height: 280px;
}

.result-hero {
  background: linear-gradient(180deg, var(--app-blue-faint), #ffffff);
}

.details-panel {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.mini-card {
  border-left: 4px solid rgba(37, 99, 235, .28) !important;
}

.score-row,
.source-detail-item {
  min-width: 0;
}

.auth-shell {
  min-height: 80vh;
}

.login-card,
.error-panel {
  overflow: hidden;
  border: 1px solid var(--app-line) !important;
  border-radius: 8px !important;
  background: #ffffff;
  box-shadow: var(--app-shadow) !important;
}

.brand-panel {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--app-blue-faint), #ffffff);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-item {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem .75rem;
  text-align: center;
  box-shadow: var(--app-shadow-soft);
}

.feature-icon {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .65rem;
  border-radius: 8px;
  background: var(--app-blue-soft);
  color: var(--app-primary-dark);
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 900;
}

.feature-label,
.login-heading {
  color: var(--app-ink);
  font-weight: 900;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--app-blue-soft);
  color: var(--app-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.65rem;
  box-shadow: var(--app-shadow-soft);
}

.password-help {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-blue-faint);
  padding: 1rem;
  color: #475569;
  line-height: 1.6;
}

.admin-note {
  background: #fff7ed !important;
  border: 1px solid rgba(245, 158, 11, .35) !important;
  color: #92400e;
  border-radius: 8px;
  padding: 1rem;
  line-height: 1.6;
}

.error-code {
  display: inline-flex;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  padding: .42rem .72rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.error-message {
  white-space: pre-wrap;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-blue-faint);
  padding: 1rem;
  color: #334155;
  line-height: 1.6;
}

@media (max-width: 575.98px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-icon {
    min-height: 92px;
    font-size: 2rem;
  }

  .card-body.p-5 {
    padding: 1.5rem !important;
  }

  .filter-actions .btn {
    width: 100%;
  }
}

/* Professional website layer inspired by the provided reference */
.site-topbar {
  width: 100%;
  background: var(--app-primary);
  color: #ffffff;
  font-size: .78rem;
  font-weight: 800;
}

.site-topbar-inner {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.app-navbar {
  margin-top: 0;
  background: #ffffff;
  border: 0 !important;
  box-shadow: 0 10px 28px rgba(12, 31, 63, .10);
}

.brand-badge {
  background: #fff3ec;
  color: var(--app-primary);
  box-shadow: none;
}

.modern-nav-link.active,
.nav-link.active,
.navbar .active,
.menu-link.active,
a.active {
  background: var(--app-blue-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(13, 39, 84, .18) !important;
}

.modern-nav-link:hover {
  background: #fff3ec;
  color: var(--app-primary-dark) !important;
}

.navbar-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-left: 16px;
  border-left: 1px solid rgba(12, 31, 63, .10);
}

.navbar-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  background: var(--app-blue-faint);
  color: var(--app-ink);
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 900;
  white-space: nowrap;
}

.navbar-user small {
  color: var(--app-primary-dark);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero,
.page-hero,
.hero-panel,
.review-hero {
  background: var(--app-blue-dark) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: var(--app-shadow) !important;
}

.hero,
.dashboard-hero,
.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.dashboard-hero {
  min-height: 220px;
  position: relative;
  background:
    linear-gradient(90deg, rgba(9, 35, 76, .98) 0%, rgba(9, 35, 76, .88) 34%, rgba(9, 35, 76, .34) 66%, rgba(9, 35, 76, .10) 100%),
    url("../img/dashboard-media-hero.png") center right / cover no-repeat !important;
}

.dashboard-hero > div:first-child {
  max-width: 620px;
  position: relative;
  z-index: 1;
}

.hero > div:first-child,
.hero-panel > div:first-child,
.page-hero > div,
.review-hero > div:first-child {
  padding: 34px;
}

.page-action-hero > div {
  padding: 0;
}

.hero h1,
.hero h2,
.hero h3,
.hero-panel h1,
.hero-panel h2,
.page-hero h1,
.page-hero h2,
.review-hero h1,
.review-hero h2 {
  color: #ffffff !important;
}

.hero-copy,
.hero .modern-page-copy,
.hero-panel .hero-copy,
.page-hero .modern-page-copy,
.review-hero .modern-page-copy {
  color: rgba(255, 255, 255, .78) !important;
}

.hero .badge,
.page-hero .badge,
.hero-panel .badge,
.eyebrow {
  background: var(--app-primary) !important;
  color: #ffffff !important;
  border: 0 !important;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: .38rem .7rem;
  margin-bottom: .9rem;
}

.hero-visual {
  min-height: 230px;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(240, 90, 40, .35), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  display: grid;
  align-content: center;
  gap: 14px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.hero-stat,
.pipeline-step {
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 8px;
  background: rgba(255,255,255,.10) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
}

.hero-stat {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hero-stat span {
  color: rgba(255,255,255,.74);
  font-weight: 800;
}

.hero-stat strong {
  color: #ffffff;
  font-size: 1.8rem;
}

.pipeline {
  min-width: 0;
}

.step-dot {
  background: var(--app-primary);
  color: #ffffff;
}

.card,
.card-clean,
.panel,
.review-panel,
.result-card,
.dataset-card,
.filter-card,
.mini-card,
.support-item,
.input-card,
.details-panel,
.text-box {
  background: #ffffff !important;
  border: 1px solid rgba(12, 31, 63, .08) !important;
  box-shadow: 0 18px 46px rgba(12, 31, 63, .08) !important;
}

.support-item,
.mini-card,
.subject-item,
.legend-item {
  background: #ffffff !important;
}

.support-item,
.mini-card {
  text-align: center;
}

.support-item::before,
.mini-card::before {
  content: "";
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 8px;
  background: #fff3ec;
  border: 1px solid rgba(240, 90, 40, .18);
}

.support-item-icon::before {
  display: none;
  content: none;
}

.btn-primary,
.btn-success,
.btn-info,
.btn-dark,
.btn-grey,
.btn-action {
  background: var(--app-primary) !important;
  border-color: var(--app-primary) !important;
}

.btn-primary:hover,
.btn-success:hover,
.btn-info:hover,
.btn-dark:hover,
.btn-grey:hover,
.btn-action:hover {
  background: var(--app-primary-dark) !important;
  border-color: var(--app-primary-dark) !important;
}

@media (max-width: 991.98px) {
  .site-topbar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: .6rem 0;
  }

  .navbar-account {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-left: 0;
    padding-top: 12px;
    border-left: 0;
    border-top: 1px solid rgba(12, 31, 63, .10);
  }

  .hero,
  .dashboard-hero,
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .page-action-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-action-side {
    width: 100%;
    justify-content: flex-start;
  }

  .page-action-side .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-visual {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.12);
  }

  .malaysia-map-layout {
    grid-template-columns: 1fr;
  }

  .state-map-list {
    max-height: none;
  }
}

@media (max-width: 991.98px) {
  .hero-panel,
  .app-grid,
  .review-grid,
  .subject-strip {
    grid-template-columns: 1fr;
  }

  .support-grid,
  .nav-pills {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .score-row,
  .source-detail-item {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .score-value {
    font-size: .85rem;
  }
}

@media print {
  .no-print,
  nav {
    display: none !important;
  }

  body {
    background: white !important;
  }

  .card-clean {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}
