/* Shared module header: logo left, badge + links + progress grouped on the right */
header.header.header--layout {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

header.header.header--layout .logo {
  flex: 0 0 auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

header.header.header--layout .header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
}

header.header.header--layout .header-center {
  display: contents;
}

header.header.header--layout .header-end {
  display: contents;
}

header.header.header--layout .module-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  margin: 0;
}

header.header.header--layout .header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

header.header.header--layout .header-nav .diq-nav-link {
  font-size: 12px;
  color: #c9a84c;
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: 28px;
  margin: 0;
  padding: 0;
  font-family: 'Rajdhani', system-ui, sans-serif;
}

header.header.header--layout .header-nav .diq-nav-link:hover {
  text-decoration: underline;
}

header.header.header--layout .progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

header.header.header--layout .progress-label {
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

header.header.header--layout .progress-bar {
  display: block;
}

.diq-profile-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.diq-profile-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.55);
  background: rgba(201, 168, 76, 0.12);
  color: #c9a84c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.diq-profile-btn:hover,
.diq-profile-btn[aria-expanded='true'] {
  background: rgba(201, 168, 76, 0.22);
  border-color: #c9a84c;
}

.diq-profile-btn svg {
  width: 16px;
  height: 16px;
}

.diq-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #141414;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 6px 0;
  z-index: 250;
  display: none;
}

.diq-profile-menu.open {
  display: block;
}

.diq-profile-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: system-ui, 'Rajdhani', sans-serif;
}

.diq-profile-item:hover {
  background: rgba(201, 168, 76, 0.12);
  color: #c9a84c;
}

.diq-profile-item.diq-profile-muted {
  color: rgba(255, 255, 255, 0.45);
  cursor: default;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: 4px;
}

.diq-profile-item.diq-profile-admin {
  color: #e8d5a3;
}

.diq-profile-item.diq-profile-muted:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
}

.diq-profile-divider {
  height: 1px;
  background: rgba(201, 168, 76, 0.2);
  margin: 4px 0;
}

@media (max-width: 900px) {
  header.header.header--layout {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  header.header.header--layout .header-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 16px;
  }

  header.header.header--layout .header-nav .diq-nav-link-get-access {
    display: none;
  }

  header.header.header--layout .progress-bar {
    width: 88px;
  }
}
