.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg, var(--glass-bg));
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--glass-border);
  isolation: isolate;
  transform: translateZ(0);
}

.left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brandLogo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  background: transparent;
}

.brandText {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brandTitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brandSubtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menuBtn {
  display: none;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: background 0.2s;
}

.menuBtn:hover {
  background: rgba(var(--primary-rgb) / 0.08);
}

.title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notificationBtn,
.iconBtn {
  position: relative;
  padding: 10px;
  border-radius: 50%;
  color: var(--text-secondary);
  transition: background 0.2s;
}

.notificationBtn:hover,
.iconBtn:hover {
  background: rgba(var(--primary-rgb) / 0.08);
  color: var(--primary);
}

.badge {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  border: 2px solid white;
}

.profileWrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.businessDashBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(var(--primary-rgb) / 0.1);
  border: 1px solid rgba(var(--primary-rgb) / 0.18);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.businessDashBtn:hover {
  background: rgba(var(--primary-rgb) / 0.16);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb) / 0.18);
  transform: translateY(-1px);
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  padding-inline: 14px 12px;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.profile:hover,
.profileOpen {
  box-shadow: var(--glass-shadow);
  border-color: rgba(var(--primary-rgb) / 0.25);
}

.profileInfo {
  display: flex;
  flex-direction: column;
}

.name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.role {
  font-size: 12px;
  color: var(--text-muted);
}

.roleBadge {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
  background: rgba(var(--primary-rgb) / 0.1);
  border: 1px solid rgba(var(--primary-rgb) / 0.18);
  font-family: var(--font-ui);
  width: fit-content;
}

.chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.chevronOpen {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--elevated-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
  z-index: 60;
  animation: dropdownIn 0.15s ease;
}

.dropdownItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

.dropdownItem:hover {
  background: rgba(var(--primary-rgb) / 0.08);
  color: var(--primary);
}

.dropdownItem:last-child:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .menuBtn {
    display: flex;
  }

  .profileInfo {
    display: none;
  }

  .chevron {
    display: none;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 12px 16px;
  }

  .title {
    font-size: 16px;
  }
}
