.bh-home-page {
  min-height: 100vh;
  background: #f1f5f9;
  color: #0f172a;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.bh-home-page,
.bh-home-page *,
.bh-home-page *::before,
.bh-home-page *::after {
  box-sizing: border-box;
}

.bh-home-page img,
.bh-home-page svg {
  max-width: 100%;
  height: auto;
}

.bh-home-page .hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.bh-home-page .hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bh-home-page .fill-1 {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-start;
  background: rgba(15, 23, 42, 0.60);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 50;
}

.sidebar-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-panel {
  width: min(20rem, 80vw);
  max-width: 20rem;
  height: 100%;
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  transform: translateX(-100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
}

.sidebar-panel--open {
  transform: translateX(0);
}

.sidebar-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem 1rem;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  color: #475569;
  font-weight: 500;
  text-align: left;
  transition: background-color .2s ease, color .2s ease;
}

.sidebar-link:hover {
  background: #f8fafc;
}

.sidebar-link--active {
  background: rgba(17, 82, 212, 0.10);
  color: #1152d4;
  font-weight: 700;
}

.dashboard-shell,
.dashboard-main,
.hero-order-wrapper,
.hero-order-section,
.hero-order-card,
.achievement-grid,
.map-card {
  min-width: 0;
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.dashboard-main {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding: 1rem;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dashboard-toggle {
  gap: .5rem;
}

.status-button {
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .75rem 1.25rem;
  min-width: 102px;
  cursor: pointer;
  transition: all .2s ease;
}

.status-button--online {
  color: #64748b;
  background: #e2e8f0;
}

.status-button--online.active {
  color: #ffffff;
  background: #10b981 !important;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.18);
}

.status-button--offline {
  color: #64748b;
  background: #e2e8f0;
}

.status-button--offline.active {
  color: #ffffff;
  background: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.status-button--offline-inactive {
  color: #64748b;
  background: #e2e8f0;
}

.hero-order-wrapper {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.hero-order-section {
  width: 100%;
}

.hero-order-glow {
  background: linear-gradient(90deg, rgba(17, 82, 212, .9), rgba(96, 165, 250, .85));
  border-radius: 1.5rem;
  filter: blur(16px);
}

.hero-order-card {
  width: 100%;
  max-width: 100%;
  border-radius: 1.5rem;
  border: 1px solid rgba(17, 82, 212, .18);
  box-shadow: 0 20px 40px rgba(17, 82, 212, 0.10), 0 8px 16px rgba(15, 23, 42, 0.08);
}

.hero-close-button {
  border-radius: .75rem;
  width: 2.25rem;
  height: 2.25rem;
}

.hero-counter {
  font-size: clamp(2.25rem, 8vw, 3rem);
  letter-spacing: -.06em;
}

.hero-order-top,
.hero-order-details .px-6,
.hero-order-details .pb-6,
.hero-order-card > .p-6,
.hero-order-card .p-6 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.hero-order-top {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.hero-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem;
  width: 100%;
  overflow: visible;
  white-space: normal;
  align-items: center;
}

.hero-metric {
  min-width: 0;
  padding-inline: .35rem;
}

.hero-metric--divided {
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.hero-order-details {
  background: rgba(248, 250, 252, .72);
}

.hero-order-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.hero-order-pill {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  align-items: flex-start;
  overflow-wrap: anywhere;
}

.hero-order-pill span:last-child {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.hero-accept-button {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 16px 28px rgba(17, 82, 212, .25);
}

.hero-accept-button:hover {
  background: #0d47c0;
  transform: translateY(-1px);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .875rem;
}

.gamified-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 10.5rem;
  padding: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gamified-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, .08);
}

.map-card {
  width: 100%;
}

.map-card img {
  display: block;
}

@media (max-width: 639.98px) {
  .dashboard-header {
    height: auto;
    min-height: 4.5rem;
    padding: .875rem 1rem;
    gap: .75rem;
  }

  .status-button {
    min-width: 76px;
    padding: .625rem .875rem;
    font-size: 10px;
  }

  .dashboard-main {
    padding: .875rem;
    padding-top: .875rem;
    gap: 1rem;
  }

  .hero-order-card {
    border-radius: 1.25rem;
  }

  .hero-close-button {
    top: .75rem !important;
    right: .75rem !important;
  }

  .hero-counter {
    font-size: 2.25rem;
  }

  .hero-metric {
    gap: .3rem !important;
    justify-content: flex-start;
  }

  .hero-metric-label {
    font-size: 8px !important;
  }

  .hero-metric-value {
    font-size: 12px !important;
  }

  .hero-order-pill {
    width: calc(50% - .25rem);
    border-radius: 1rem;
    padding: .375rem .5rem !important;
    gap: .35rem !important;
  }

  .hero-order-pill span:last-child {
    font-size: 10.5px !important;
  }

  .hero-accept-button {
    height: 3rem;
    font-size: 12px;
    letter-spacing: .12em;
  }

  .gamified-card {
    border-radius: 1.125rem;
  }

  .gamified-card p.text-xl {
    font-size: 1.5rem;
  }

  .map-card .h-32 {
    height: 7rem;
  }
}

@media (min-width: 640px) {
  .dashboard-main {
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .hero-order-wrapper {
    max-width: 34rem;
  }
}

@media (min-width: 768px) {
  .dashboard-main {
    max-width: 72rem;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .hero-order-wrapper {
    max-width: 32rem;
  }

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

@media (min-width: 1200px) {
  .hero-order-wrapper {
    max-width: 34rem;
  }

  .achievement-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
