html[data-dashboard-chrome] {
  --dash-tab-h: 68px;
}

html[data-dashboard-chrome] nav.mobile-tabs {
  display: none !important;
}

.dash-tabs,
.dash-tab-overlay {
  display: none;
}

.dash-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(246, 243, 234, 0.35);
  border-top-color: #f6e7b4;
  animation: dash-tab-spin 0.7s linear infinite;
}

.dash-tab-overlay {
  position: fixed;
  z-index: 1390;
  inset: 0 0 var(--dash-tab-h, 68px) 0;
  place-items: center;
  background: rgba(12, 12, 15, 0.28);
  pointer-events: none;
}

.dash-tab-overlay[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .dash-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(var(--dash-tab-h, 68px) + env(safe-area-inset-bottom));
    padding: 4px 4px env(safe-area-inset-bottom);
    box-sizing: border-box;
    background: rgba(12, 12, 15, 0.96);
    border-top: 1px solid rgba(228, 195, 106, 0.35);
    pointer-events: auto;
  }

  .dash-tab-overlay:not([hidden]) {
    display: grid;
  }

  nav.dash-tabs a.dash-tab,
  nav.dash-tabs button.dash-tab {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 4px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #f6f3ea;
    font: 600 10px/1.1 Inter, system-ui, sans-serif;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  nav.dash-tabs .dash-tab svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px;
  }

  .dash-tab-label {
    font: 600 10px/1.1 Inter, system-ui, sans-serif;
    letter-spacing: 0.01em;
  }

  .dash-tab[aria-current="page"] {
    color: #f6e7b4;
    background: rgba(246, 231, 180, 0.22);
    box-shadow: inset 0 -2px 0 #f6e7b4;
  }

  .dash-tab:disabled,
  .dash-tab[aria-disabled="true"] {
    opacity: 0.7;
  }

  .dash-tab:focus-visible {
    outline: 2px solid #f6e7b4;
    outline-offset: 2px;
  }

  html[data-dashboard-chrome] #root,
  html[data-dashboard-chrome] #client-dashboard-root,
  html[data-dashboard-chrome] #massage-dashboard-root,
  html[data-dashboard-chrome] #brothel-dashboard-root,
  html[data-dashboard-chrome] .dashboard-chrome-main,
  html[data-dashboard-chrome] .agency-body,
  html[data-dashboard-chrome] .saas-main,
  html[data-dashboard-chrome] .client-main {
    padding-bottom: calc(var(--dash-tab-h, 68px) + env(safe-area-inset-bottom));
  }
}

html[data-dashboard-chrome] .blk-bottom-nav {
  display: none !important;
}

html[data-dashboard-chrome] .blk-more-sheet {
  z-index: 1500;
}

@keyframes dash-tab-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .dash-spinner { animation: none; }
}
