/* Dashboard master layout */
.hf-app-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.hf-app-loader.is-open,
.hf-app-loader:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.hf-app-loader-inner {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.75rem 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.24);
  min-width: min(88vw, 320px);
}

.hf-app-loader-ring {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 3px solid rgba(249, 115, 22, 0.18);
  border-top-color: #f97316;
  animation: hfLoaderSpin 0.85s linear infinite;
}

.hf-app-loader-title {
  font-size: 1.125rem;
  font-weight: 900;
  color: #0f172a;
}

.hf-app-loader-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}

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

.hf-master-body {
  margin: 0;
  min-height: 100vh;
  background: #eef2f7;
  color: #0f172a;
  font-family: inherit;
}

.hf-master-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px 1fr;
}

/* ── Panel navigation (new design) ── */
.hf-panel {
  position: sticky;
  top: 0;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e8edf3;
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.hf-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 55%, #dc2626 100%);
  flex-shrink: 0;
}

.hf-panel__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.hf-panel__brand-mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  overflow: hidden;
  padding: 0;
  background: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.hf-panel__brand-text {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hf-panel__brand-text span { color: #fef08a; }

.hf-panel__close {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.hf-panel__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hf-panel__close .hf-mi {
  font-size: 1.25rem;
  width: 1em;
  height: 1em;
  line-height: 1;
  display: block;
}

.hf-panel__profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.75rem 0.75rem 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e8edf3;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

.hf-panel__avatar {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  background: #e2e8f0;
}

.hf-panel__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hf-panel__avatar-fallback {
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.hf-panel__avatar--provider .hf-panel__avatar-fallback {
  background: linear-gradient(135deg, #059669, #047857);
}

.hf-panel__avatar--customer .hf-panel__avatar-fallback {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.hf-panel__profile-meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.hf-panel__name {
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-panel__role {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hf-panel__role--admin { background: #ede9fe; color: #7c3aed; }
.hf-panel__role--provider { background: #d1fae5; color: #059669; }
.hf-panel__role--customer { background: #dbeafe; color: #2563eb; }

.hf-panel__nav {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hf-panel__scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.15rem 0.65rem 0.35rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.hf-panel__section + .hf-panel__section {
  margin-top: 0.35rem;
}

.hf-panel__section-label {
  display: block;
  padding: 0.35rem 0.5rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
}

.hf-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.hf-panel__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  color: #475569;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.2;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  box-sizing: border-box;
}

.hf-panel__link:hover {
  background: #f8fafc;
  color: #0f172a;
}

.hf-panel__link:active {
  transform: scale(0.985);
}

.hf-panel__link-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.05rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.hf-panel__link-icon.hf-mi,
.hf-panel__link-icon .hf-mi {
  font-size: 1.05rem;
  line-height: 1;
  width: 1em;
  height: 1em;
  display: block;
}

.hf-panel__list li {
  margin: 0;
  padding: 0;
}

.hf-panel__link-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-panel__link.is-active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(234, 88, 12, 0.06) 100%);
  border-color: rgba(249, 115, 22, 0.18);
  color: #c2410c;
  font-weight: 700;
}

.hf-panel__link.is-active .hf-panel__link-icon {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
}

.hf-panel__bottom {
  flex: 0 0 auto;
  display: grid;
  gap: 0;
  padding: 0.5rem 0.65rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e8edf3;
  background: #fff;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
}

.hf-panel__avatar:has(img[src]:not([src=""])) .hf-panel__avatar-fallback {
  display: none;
}

.hf-panel__logout-form {
  margin: 0;
}

.hf-panel__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.45rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hf-panel__logout:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.hf-panel__logout .hf-mi {
  font-size: 1.05rem;
}

html.hf-sidebar-open,
html.hf-sidebar-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.hf-master-main {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Top bar + profile */
.hf-master-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.hf-master-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.hf-master-menu-btn {
  display: none;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 2.35rem;
  border: 0;
  border-radius: 0.65rem;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.hf-master-menu-btn .hf-mi {
  font-size: 1.3rem;
  line-height: 1;
  width: 1em;
  height: 1em;
  display: block;
}

.hf-master-content {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 1rem 1.25rem 1.5rem;
  transition: opacity 0.16s ease;
  box-sizing: border-box;
}

.hf-master-content.is-nav-loading {
  opacity: 1;
  pointer-events: none;
}

.hf-master-topbar-title {
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-master-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.hf-master-profile-wrap {
  position: relative;
}

.hf-master-profile {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.28rem 0.45rem 0.28rem 0.32rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  max-width: min(100%, 280px);
}

.hf-master-profile-copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  text-align: left;
}

.hf-master-profile-name {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-master-profile-role {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hf-master-profile-role--admin { color: #7c3aed; }
.hf-master-profile-role--provider { color: #059669; }

.hf-master-profile-chevron {
  font-size: 1.1rem;
  color: #94a3b8;
  transition: transform 0.18s ease;
}

.hf-master-profile-wrap:has(#hfProfileMenu:not(.hidden)) .hf-master-profile-chevron {
  transform: rotate(180deg);
}

.hf-master-profile-avatar {
  position: relative;
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 2.15rem;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #e2e8f0;
}

.hf-master-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.18s ease;
}

.hf-master-profile-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.hf-master-profile-avatar--provider .hf-master-profile-fallback {
  background: linear-gradient(135deg, #059669, #047857);
}

.hf-master-profile-avatar.has-image .hf-master-profile-fallback,
.hf-master-profile-avatar img[src]:not([src=""]) + .hf-master-profile-fallback {
  display: none;
}

.hf-master-profile-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: min(92vw, 280px);
  padding: 0;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 18px 44px rgba(15, 23, 42, 0.14);
  z-index: 30;
  overflow: hidden;
}

.hf-master-profile-menu-head {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem 0.75rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 52%, #fef3c7 100%);
  border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

.hf-master-profile-menu-head-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.hf-master-profile-menu-avatar {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(15, 23, 42, 0.12);
}

.hf-master-profile-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hf-master-profile-menu-avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.hf-master-profile-menu-avatar--provider .hf-master-profile-menu-avatar-fallback {
  background: linear-gradient(135deg, #059669, #047857);
}

.hf-master-profile-menu-avatar:has(img[src]:not([src=""])) .hf-master-profile-menu-avatar-fallback {
  display: none;
}

.hf-master-profile-menu-head-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.hf-master-profile-menu-head-copy strong {
  font-size: 0.875rem;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hf-master-profile-menu-role {
  display: inline-flex;
  width: fit-content;
  padding: 0.14rem 0.45rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hf-master-profile-menu-role--admin {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.12);
}

.hf-master-profile-menu-role--provider {
  color: #047857;
  background: rgba(5, 150, 105, 0.12);
}

.hf-master-profile-menu-mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
}

.hf-master-profile-menu-mobile .hf-mi {
  font-size: 0.95rem !important;
  color: #ea580c;
}

.hf-master-profile-menu-body {
  display: grid;
  gap: 0.28rem;
  padding: 0.45rem;
}

.hf-master-profile-menu-item,
.hf-master-profile-logout-form button {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.65rem;
  border-radius: 0.78rem;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hf-master-profile-menu-item-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  flex: 1 1 auto;
}

.hf-master-profile-menu-item-copy strong {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.hf-master-profile-menu-item-copy small {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.25;
}

.hf-master-profile-menu-item-icon {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 0.72rem;
}

.hf-master-profile-menu-item-icon .hf-mi {
  font-size: 1.15rem !important;
}

.hf-master-profile-menu-item-icon--edit {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(234, 88, 12, 0.12));
  color: #ea580c;
}

.hf-master-profile-menu-item-icon--logout {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.hf-master-profile-menu-item-arrow {
  flex: 0 0 auto;
  font-size: 1.1rem !important;
  color: #94a3b8;
}

.hf-master-profile-menu-item--edit:hover {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(255, 237, 213, 0.65));
}

.hf-master-profile-menu-item--edit:hover .hf-master-profile-menu-item-arrow {
  color: #ea580c;
  transform: translateX(1px);
}

.hf-master-profile-menu-item--danger:hover {
  background: rgba(254, 226, 226, 0.72);
}

.hf-master-profile-menu-item--danger .hf-master-profile-menu-item-copy strong {
  color: #b91c1c;
}

.hf-master-profile-logout-form {
  margin: 0;
}

.hf-master-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}

/* Profile sheet */
.hf-profile-sheet {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  place-items: stretch;
  justify-items: end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.hf-profile-sheet:not(.hidden) {
  display: grid;
}

.hf-profile-sheet.hidden {
  display: none !important;
}

.hf-profile-sheet.is-open {
  opacity: 1;
  visibility: visible;
}

.hf-profile-sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
}

.hf-profile-sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100vw, 420px);
  height: 100%;
  max-height: 100dvh;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.24s ease;
  overflow: hidden;
}

.hf-profile-sheet.is-open .hf-profile-sheet-panel {
  transform: translateX(0);
}

.hf-profile-sheet-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.hf-profile-sheet-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.hf-profile-sheet-sub {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}

.hf-profile-sheet-close {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 0.65rem;
  background: #f1f5f9;
  color: #475569;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hf-profile-sheet-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.hf-profile-sheet-form-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.hf-profile-sheet-body {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.hf-profile-photo-block {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-items: start;
  gap: 0.55rem 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.hf-profile-photo-preview {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
  display: grid;
  place-items: center;
}

.hf-profile-photo-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: inline-block;
  opacity: 0;
  pointer-events: none;
}

.hf-profile-photo-preview.has-image img {
  opacity: 1;
}

.hf-profile-photo-fallback {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.hf-profile-photo-preview.has-image .hf-profile-photo-fallback {
  opacity: 0;
}

.hf-profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-start;
}

.hf-profile-photo-btn,
.hf-profile-photo-remove {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.42rem 0.62rem;
  border-radius: 0.68rem;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.hf-profile-photo-btn {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.hf-profile-photo-remove {
  border: 0;
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.hf-profile-field {
  display: grid;
  gap: 0.35rem;
}

.hf-profile-field-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #334155;
}

.hf-profile-field-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.65rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hf-profile-field-wrap:focus-within {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
  background: #fff;
}

.hf-profile-field-wrap .hf-mi {
  color: #64748b;
  font-size: 1.05rem;
}

.hf-profile-field-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  font-weight: 700;
  color: #0f172a;
  background: transparent;
}

.hf-profile-section {
  display: grid;
  gap: 0.55rem;
}

.hf-profile-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.2rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #fed7aa;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #9a3412;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hf-profile-section-toggle:hover {
  background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
  border-color: #fdba74;
}

.hf-profile-section-toggle-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.hf-profile-section-toggle-icon {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: rgba(249, 115, 22, 0.16);
  color: #ea580c;
  font-size: 1.15rem !important;
}

.hf-profile-section-toggle-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.hf-profile-section-toggle-copy strong {
  font-size: 0.875rem;
  font-weight: 800;
  color: #9a3412;
}

.hf-profile-section-toggle-copy small {
  font-size: 0.72rem;
  font-weight: 600;
  color: #c2410c;
}

.hf-profile-section-chevron {
  flex-shrink: 0;
  color: #ea580c;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.hf-profile-section-toggle[aria-expanded="true"] .hf-profile-section-chevron {
  transform: rotate(180deg);
}

.hf-profile-section--accordion .hf-profile-section-collapse {
  overflow: hidden;
}

.hf-profile-section-collapse > .hf-profile-section-collapse-body {
  display: grid;
  gap: 0.65rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  padding: 0 0.1rem;
  pointer-events: none;
  transition:
    max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    transform 0.28s ease,
    padding 0.28s ease;
}

.hf-profile-section--accordion.is-expanded .hf-profile-section-collapse > .hf-profile-section-collapse-body {
  max-height: 20rem;
  opacity: 1;
  transform: translateY(0);
  padding: 0.75rem 0.1rem 0.25rem;
  pointer-events: auto;
}

.hf-profile-feedback {
  margin: 0;
  padding: 0.6rem 0.7rem;
  border-radius: 0.72rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.hf-profile-feedback.is-error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.hf-profile-feedback.is-success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

html.hf-profile-open .hf-master-shell {
  overflow: hidden;
  touch-action: none;
}

.hf-profile-sheet-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  background: #fff;
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.05);
}

.hf-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.62rem 0.85rem;
  border-radius: 0.72rem;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  flex: 1 1 auto;
  justify-content: center;
}

.hf-profile-btn--ghost {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #334155;
}

.hf-profile-btn--primary {
  border: 0;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
}

.hf-profile-btn--primary.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

/* Dashboard content */
.hf-dash-page {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  max-width: none;
}

.hf-dash-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 900;
}

.hf-dash-sub {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-weight: 600;
  font-size: 0.875rem;
}

.hf-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.hf-dash-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.hf-dash-stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
}

.hf-dash-stat-icon--customer { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.hf-dash-stat-icon--provider { background: rgba(16, 185, 129, 0.12); color: #059669; }
.hf-dash-stat-icon--admin { background: rgba(168, 85, 247, 0.12); color: #9333ea; }

.hf-dash-stat-value {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.hf-dash-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
}

.hf-dash-grid,
.hf-dash-grid--single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.hf-dash-panel {
  padding: 0.95rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.hf-dash-panel-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 900;
}

.hf-dash-actions { display: grid; gap: 0.45rem; }

.hf-dash-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 0.78rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
}

.hf-dash-empty {
  display: grid;
  justify-items: start;
  gap: 0.4rem;
  padding: 1.1rem;
}

.hf-dash-empty-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
}

.hf-dash-provider-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.75rem;
}

.hf-dash-provider-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hf-dash-provider-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.hf-dash-provider-note {
  margin: 0.75rem 0 0;
  color: #64748b;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.5;
}

.hf-dash-provider-stats { display: grid; gap: 0.5rem; }

.hf-dash-provider-stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.68rem 0.75rem;
  border-radius: 0.75rem;
  background: #f8fafc;
}

@media (max-width: 1023px) {
  .hf-dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hf-dash-provider-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .hf-master-shell { grid-template-columns: 1fr; }

  .hf-master-content {
    padding: 0.75rem 0.85rem 1.15rem;
  }

  .hf-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: min(100vw, 340px);
    max-width: 100%;
    height: 100svh;
    height: 100dvh;
    max-height: 100svh;
    max-height: 100dvh;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    transform: translateX(-105%);
    transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 16px 0 40px rgba(15, 23, 42, 0.18);
  }

  .hf-master-shell.is-sidebar-open .hf-panel {
    transform: translateX(0);
  }

  .hf-panel__header {
    padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.85rem 0.75rem;
    gap: 0.65rem;
  }

  .hf-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-basis: 2.75rem;
    border-radius: 0.7rem;
  }

  .hf-panel__close .hf-mi {
    font-size: 1.45rem;
  }

  .hf-panel__brand {
    gap: 0.6rem;
  }

  .hf-panel__brand-text {
    font-size: 1.0625rem;
  }

  .hf-panel__brand-mark {
    width: 2.35rem;
    height: 2.35rem;
    flex-basis: 2.35rem;
    border-radius: 0.65rem;
  }

  .hf-panel__brand-mark .hf-brand-mark__img {
    width: 100%;
    height: 100%;
  }

  .hf-panel__profile {
    margin: 0.65rem 0.75rem 0.45rem;
    padding: 0.75rem 0.8rem;
    gap: 0.75rem;
    border-radius: 1rem;
  }

  .hf-panel__avatar {
    width: 3.25rem;
    height: 3.25rem;
    flex-basis: 3.25rem;
  }

  .hf-panel__avatar-fallback {
    font-size: 1rem;
  }

  .hf-panel__name {
    font-size: 1rem;
  }

  .hf-panel__role {
    font-size: 0.72rem;
    padding: 0.18rem 0.5rem;
  }

  .hf-panel__nav {
    min-height: 0;
    overflow: hidden;
  }

  .hf-panel__scroll {
    padding: 0.25rem 0.75rem 0.4rem;
  }

  .hf-panel__section + .hf-panel__section {
    margin-top: 0.45rem;
  }

  .hf-panel__section-label {
    padding: 0.4rem 0.55rem 0.25rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .hf-panel__list {
    gap: 0.28rem;
  }

  .hf-panel__link {
    min-height: 3.35rem;
    padding: 0.6rem 0.7rem;
    gap: 0.75rem;
    font-size: 1rem;
    border-radius: 0.9rem;
  }

  .hf-panel__link-icon {
    width: 2.75rem;
    height: 2.75rem;
    flex-basis: 2.75rem;
    border-radius: 0.7rem;
    font-size: 1.45rem;
  }

  .hf-panel__link-icon.hf-mi,
  .hf-panel__link-icon .hf-mi {
    font-size: 1.45rem;
  }

  .hf-panel__link-text {
    line-height: 1.3;
    font-size: 1rem;
  }

  .hf-panel__bottom {
    padding: 0.65rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .hf-panel__logout {
    min-height: 3.15rem;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    gap: 0.5rem;
    border-radius: 0.9rem;
  }

  .hf-panel__logout .hf-mi {
    font-size: 1.35rem;
  }

  .hf-master-menu-btn {
    display: inline-flex;
  }

  .hf-master-profile-copy { display: none; }

  .hf-master-profile {
    padding: 0.18rem;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .hf-master-profile-chevron { display: none; }

  .hf-profile-sheet:not(.hidden) {
    display: block;
  }

  .hf-profile-sheet {
    display: none;
    padding: 0;
  }

  .hf-profile-sheet-backdrop {
    position: fixed;
    inset: 0;
  }

  .hf-profile-sheet-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 1;
    width: 100%;
    height: min(calc(var(--hf-vvh, 100dvh) - 0.5rem), 92dvh);
    max-height: min(calc(var(--hf-vvh, 100dvh) - 0.5rem), 92dvh);
    display: flex;
    flex-direction: column;
    border-radius: 1rem 1rem 0 0;
    transform: translate3d(0, 105%, 0);
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
  }

  .hf-profile-sheet-panel::before {
    content: '';
    display: block;
    width: 2.25rem;
    height: 0.22rem;
    margin: 0.45rem auto 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.14);
    flex-shrink: 0;
  }

  .hf-profile-sheet.is-open .hf-profile-sheet-panel {
    transform: translate3d(0, 0, 0);
  }

  .hf-profile-sheet-form {
    flex: 1 1 auto;
    min-height: 0;
  }

  .hf-profile-sheet-head {
    padding: 0.55rem 1rem 0.5rem;
  }

  .hf-profile-sheet-sub {
    display: none;
  }

  .hf-profile-sheet-body {
    padding: 0.5rem 1rem;
    gap: 0.55rem;
  }

  .hf-profile-photo-preview {
    width: 2.85rem;
    height: 2.85rem;
  }

  .hf-profile-sheet-foot {
    padding: 0.55rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }

  .hf-profile-sheet-foot .hf-profile-btn {
    flex: 1 1 0;
    justify-content: center;
    min-height: 2.45rem;
  }
}

@media (max-width: 767px) and (max-height: 680px) {
  .hf-panel__profile {
    margin: 0.45rem 0.65rem 0.3rem;
    padding: 0.55rem 0.65rem;
  }

  .hf-panel__avatar {
    width: 2.85rem;
    height: 2.85rem;
    flex-basis: 2.85rem;
  }

  .hf-panel__link {
    min-height: 3rem;
    padding: 0.5rem 0.6rem;
  }

  .hf-panel__section-label {
    padding-top: 0.25rem;
  }
}

@media (max-width: 480px) {
  .hf-master-topbar-title { font-size: 0.95rem; }
}

/* Profile edit dialog (uses hf-md-dialog from admin-modal.css) */
#hfProfileSheet.hf-md-dialog {
  z-index: 250;
}

.hf-profile-dialog-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.hf-profile-dialog-form .hf-md-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
}

.hf-profile-dialog-form .hf-md-dialog__footer {
  flex: 0 0 auto;
}

/* Profile edit page */
.hf-profile-page {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  max-width: 42rem;
}

.hf-profile-page-head {
  display: grid;
  gap: 0.65rem;
}

.hf-profile-page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
}

.hf-profile-page-back:hover {
  color: #ea580c;
}

.hf-profile-page-card {
  padding: 1rem;
}

.hf-profile-page-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.hf-profile-page-avatar {
  width: 4rem;
  height: 4rem;
  flex: 0 0 4rem;
}

.hf-profile-page-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.hf-profile-page-role {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748b;
}

.hf-profile-page-form {
  display: grid;
  gap: 0.85rem;
}

.hf-profile-provider-fields {
  margin-top: 0.15rem;
}

.hf-profile-photo-actions--page {
  width: 100%;
}

.hf-profile-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 0.35rem;
}

.hf-profile-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.62rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  flex: 1 1 8rem;
}

.hf-profile-page-btn--ghost {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #334155;
}

.hf-profile-page-btn--primary {
  border: 0;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
}

.hf-profile-page-btn--primary.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.hf-profile-page-alerts {
  display: grid;
  gap: 0.55rem;
}

.hf-profile-page-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
}

.hf-profile-page-alert__icon {
  flex: 0 0 auto;
  font-size: 1.125rem !important;
  line-height: 1;
}

.hf-profile-page-alert__text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
}

.hf-profile-page-alert--success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.hf-profile-page-alert--success .hf-profile-page-alert__icon {
  color: #16a34a;
}

.hf-profile-page-alert--error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.hf-profile-page-alert--error .hf-profile-page-alert__icon {
  color: #dc2626;
}

.hf-profile-page-field-error {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b91c1c;
}

.hf-profile-page-field-hint {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
}

.hf-md-field__control--readonly {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.08);
}

.hf-md-field__control--readonly .hf-mi {
  color: #94a3b8;
}

.hf-md-field__control--readonly input:disabled {
  color: #475569;
  -webkit-text-fill-color: #475569;
  opacity: 1;
  cursor: not-allowed;
  font-weight: 700;
}

.hf-md-field__control--password {
  position: relative;
  padding-right: 0.35rem;
}

.hf-md-field__control--password input {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0.25rem;
}

.hf-password-toggle {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 0;
}

.hf-password-toggle:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #ea580c;
}

.hf-password-toggle .hf-mi {
  font-size: 1.15rem !important;
}

@media (max-width: 767px) {
  .hf-profile-page {
    max-width: none;
  }

  .hf-profile-page-card {
    padding: 0.85rem;
  }

  .hf-profile-page-actions {
    flex-direction: column;
  }

  .hf-profile-page-btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* Dashboard v2 — hero, colored stats, panels */
.hf-dash-page {
  gap: 1rem;
}

.hf-dash-page--admin .hf-dash-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #9333ea 100%);
}

.hf-dash-page--provider .hf-dash-hero {
  background: linear-gradient(135deg, #047857 0%, #059669 55%, #10b981 100%);
}

.hf-dash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.25rem;
  border-radius: 1.15rem;
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.hf-dash-hero__copy {
  min-width: 0;
}

.hf-dash-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hf-dash-hero__badge .hf-mi {
  font-size: 1rem !important;
}

.hf-dash-page .hf-dash-title {
  margin-top: 0.65rem;
  color: #fff;
}

.hf-dash-hero .hf-dash-sub {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  line-height: 1.55;
}

.hf-dash-panel .hf-dash-sub,
.hf-dash-provider-head .hf-dash-sub {
  margin-top: 0.25rem;
  color: #64748b !important;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.hf-dash-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
  font-size: 0.875rem;
}

.hf-dash-stats--admin,
.hf-dash-stats--provider {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hf-dash-stats--secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hf-dash-page .hf-dash-stat {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 0;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.hf-dash-page .hf-dash-stat::after {
  content: "";
  position: absolute;
  inset: auto -1.5rem -1.5rem auto;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  opacity: 0.12;
  background: currentColor;
}

.hf-dash-stat--users {
  color: #4338ca;
  background: linear-gradient(145deg, #eef2ff, #fff);
}

.hf-dash-stat--customer {
  color: #2563eb;
  background: linear-gradient(145deg, #eff6ff, #fff);
}

.hf-dash-stat--provider {
  color: #059669;
  background: linear-gradient(145deg, #ecfdf5, #fff);
}

.hf-dash-stat--reviews {
  color: #ea580c;
  background: linear-gradient(145deg, #fff7ed, #fff);
}

.hf-dash-stat--pending {
  color: #d97706;
  background: linear-gradient(145deg, #fffbeb, #fff);
}

.hf-dash-stat--rated {
  color: #ca8a04;
  background: linear-gradient(145deg, #fefce8, #fff);
}

.hf-dash-stat--done {
  color: #0d9488;
  background: linear-gradient(145deg, #f0fdfa, #fff);
}

.hf-dash-page .hf-dash-stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  color: inherit;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.hf-dash-page .hf-dash-stat-value {
  font-size: 1.55rem;
  color: #0f172a;
}

.hf-dash-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.hf-dash-mini .hf-mi {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  font-size: 1.25rem !important;
}

.hf-dash-mini strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
  color: #0f172a;
}

.hf-dash-mini span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748b;
}

.hf-dash-mini--pending .hf-mi {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.hf-dash-mini--rated .hf-mi {
  background: rgba(234, 179, 8, 0.14);
  color: #ca8a04;
}

.hf-dash-mini--leads .hf-mi {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
}

.hf-dash-grid--provider {
  grid-template-columns: 1.15fr 0.85fr;
}

.hf-dash-panel--accent {
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.07), #fff 45%);
  border-color: rgba(249, 115, 22, 0.14);
}

.hf-dash-panel--provider {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.08), #fff 50%);
  border-color: rgba(16, 185, 129, 0.16);
}

.hf-dash-page .hf-dash-panel {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.hf-dash-page .hf-dash-panel-title {
  color: #0f172a;
}

.hf-dash-page .hf-dash-action {
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hf-dash-page .hf-dash-action:not(.hf-dash-action--primary):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.hf-dash-action--primary {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff !important;
  border-color: transparent;
}

.hf-dash-action--primary:hover,
.hf-dash-action--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.35);
  background: linear-gradient(135deg, #c2410c, #ea580c) !important;
  color: #fff !important;
}

.hf-dash-action--primary:hover span,
.hf-dash-action--primary:focus-visible span {
  color: #fff !important;
}

.hf-dash-action--primary .hf-mi {
  color: #fff !important;
}

.hf-dash-page .hf-dash-provider-icon {
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
}

.hf-dash-page .hf-dash-provider-note {
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(16, 185, 129, 0.25);
}

@media (max-width: 1023px) {
  .hf-dash-stats--admin,
  .hf-dash-stats--provider {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hf-dash-stats--secondary {
    grid-template-columns: 1fr;
  }

  .hf-dash-grid--provider {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .hf-dash-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .hf-dash-hero__meta {
    align-self: flex-start;
  }

  .hf-dash-page--admin .hf-dash-sub {
    font-size: 0.78rem;
    line-height: 1.35;
    max-width: none;
  }

  .hf-dash-stats--admin,
  .hf-dash-stats--provider {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .hf-dash-page .hf-dash-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.65rem;
  }

  .hf-dash-page .hf-dash-stat-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
  }

  .hf-dash-page .hf-dash-stat-value {
    font-size: 1.25rem;
  }

  .hf-dash-page .hf-dash-stat-label {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .hf-dash-stats--secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .hf-dash-mini {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    padding: 0.65rem 0.35rem;
    min-width: 0;
  }

  .hf-dash-mini .hf-mi {
    width: 2rem;
    height: 2rem;
    font-size: 1.05rem !important;
  }

  .hf-dash-mini > div {
    min-width: 0;
    width: 100%;
  }

  .hf-dash-mini strong {
    font-size: 0.95rem;
  }

  .hf-dash-mini span {
    font-size: 0.62rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .hf-dash-page--admin .hf-dash-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .hf-dash-page--admin .hf-dash-action--primary {
    grid-column: 1 / -1;
  }

  .hf-dash-page--admin .hf-dash-action:not(.hf-dash-action--primary) {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.3rem;
    padding: 0.55rem 0.25rem;
    font-size: 0.62rem;
    min-width: 0;
  }

  .hf-dash-page--admin .hf-dash-action:not(.hf-dash-action--primary) .hf-mi {
    font-size: 1.15rem;
  }

  .hf-dash-page--admin .hf-dash-action:not(.hf-dash-action--primary) span:last-child {
    line-height: 1.2;
    word-break: break-word;
  }
}
