.app-header {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(300px, 2fr) minmax(210px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 124px;
  padding: 18px 30px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.header-left {
  display: flex;
  justify-content: flex-start;
}

.header-brand-mark {
  width: 74px;
  height: 74px;
  background: #fff;
  color: var(--primary);
  font-size: 27px;
}

.header-center {
  min-width: 0;
  text-align: center;
}

.header-customer-name {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.15;
}

.header-branch {
  margin-top: 7px;
  font-size: 18px;
  font-weight: 700;
}

.header-address {
  margin-top: 4px;
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-user {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
}

.header-user span:first-child {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.header-logout-btn {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 9px;
  background: #fff;
  color: #374151;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .app-header {
    grid-template-columns: 82px minmax(240px, 1fr) minmax(180px, auto);
    gap: 14px;
    min-height: 110px;
    padding: 15px 20px;
  }

  .header-brand-mark {
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 767px) {
  .app-header {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
    text-align: center;
  }

  .header-left,
  .header-right {
    justify-content: center;
  }

  .header-user {
    align-items: center;
  }
}

@media (max-width: 430px) {
  .header-right {
    flex-direction: column;
  }
}
